Skip to content

Commit 463c368

Browse files
radarherehugovk
andauthored
Simplified code
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent cdc498e commit 463c368

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/test_imagemath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
def pixel(im: Image.Image | int) -> str | int:
99
if isinstance(im, int):
1010
return int(im) # hack to deal with booleans
11-
else:
12-
return f"{im.mode} {repr(im.getpixel((0, 0)))}"
11+
12+
return f"{im.mode} {repr(im.getpixel((0, 0)))}"
1313

1414

1515
A = Image.new("L", (1, 1), 1)

0 commit comments

Comments
 (0)