Skip to content

Commit 20d7a15

Browse files
committed
pre-commit formatting
1 parent c23d736 commit 20d7a15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_imageload/png.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ def load( # noqa: PLR0912, PLR0915, Too many branches, Too many statements
117117
# remove once CircuitPython 9.1 is no longer supported
118118
# https://github.com/adafruit/circuitpython/issues/6675
119119
# https://github.com/adafruit/circuitpython/issues/9707
120-
if ((implementation[1][0] == 9 and implementation[1][1] < 2) or
121-
implementation[1][0] < 9) and (depth < 8 or width % 4 != 0):
122-
120+
if (
121+
(implementation[1][0] == 9 and implementation[1][1] < 2) or implementation[1][0] < 9
122+
) and (depth < 8 or width % 4 != 0):
123123
pixels_per_byte = 8 // depth
124124
for x in range(0, width, pixels_per_byte):
125125
byte = data_bytes[src]

0 commit comments

Comments
 (0)