Skip to content

Commit

Permalink
Simplified code
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
  • Loading branch information
radarhere and hugovk authored Feb 7, 2024
1 parent cdc498e commit 463c368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_imagemath.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
def pixel(im: Image.Image | int) -> str | int:
if isinstance(im, int):
return int(im) # hack to deal with booleans
else:
return f"{im.mode} {repr(im.getpixel((0, 0)))}"

return f"{im.mode} {repr(im.getpixel((0, 0)))}"


A = Image.new("L", (1, 1), 1)
Expand Down

0 comments on commit 463c368

Please sign in to comment.