Skip to content

Commit 3d60431

Browse files
Kevin MatochaKevin Matocha
Kevin Matocha
authored and
Kevin Matocha
committed
pylint fixes, disabled too-many-nested-blocks
1 parent 3913811 commit 3d60431

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_display_text/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def wrap_text_to_pixels(
2424
indent0: str = "",
2525
indent1: str = "",
2626
) -> List[str]:
27-
# pylint: disable=too-many-branches, too-many-locals
27+
# pylint: disable=too-many-branches, too-many-locals, too-many-nested-blocks, too-many-statements
2828

2929
"""wrap_text_to_pixels function
3030
A helper that will return a list of lines with word-break wrapping.
@@ -86,7 +86,9 @@ def measure(text):
8686
if newline:
8787
word_parts.append("".join(partial) + cur_part + "-")
8888
else:
89-
word_parts.append("".join(partial) + " " + cur_part + "-")
89+
word_parts.append(
90+
"".join(partial) + " " + cur_part + "-"
91+
)
9092
else:
9193
word_parts.append("".join(partial))
9294
cur_part = char

0 commit comments

Comments
 (0)