Skip to content

Commit 638da42

Browse files
committed
redo after resync with AF MAIN and reformat
1 parent 74b548e commit 638da42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_tlc59711.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,8 @@ def set_pixel(
802802
# repr(value)
803803
if len(value) != COLORS_PER_PIXEL:
804804
raise IndexError(
805-
f"length of value {len(value)} does not match COLORS_PER_PIXEL (= {COLORS_PER_PIXEL})"
805+
f"length of value {len(value)} does not match COLORS_PER_PIXEL"
806+
" (= {COLORS_PER_PIXEL})"
806807
)
807808
# tested:
808809
# splitting up into variables to not need the list..
@@ -932,7 +933,8 @@ def __setitem__(self, key: int, value: Tuple[float, float, float]) -> None:
932933
value = list(value)
933934
if len(value) != COLORS_PER_PIXEL:
934935
raise IndexError(
935-
f"length of value {len(value)} does not match COLORS_PER_PIXEL (= {COLORS_PER_PIXEL})"
936+
f"length of value {len(value)} does not match COLORS_PER_PIXEL"
937+
" (= {COLORS_PER_PIXEL})"
936938
)
937939
# _check_and_convert modifies value in place..
938940
self._check_and_convert(value)

0 commit comments

Comments
 (0)