Image will never be None

Co-authored-by: jorenham <jhammudoglu@gmail.com>
This commit is contained in:
Andrew Murray 2026-03-29 19:40:16 +11:00
parent b62ff96779
commit 7ef54f6bfd
2 changed files with 1 additions and 3 deletions

View File

@ -112,8 +112,6 @@ def test_to_array(mode: str, dtype: pyarrow.DataType, mask: list[int] | None) ->
reloaded = Image.fromarrow(arr, mode, img.size)
assert reloaded
assert_image_equal(img, reloaded)

View File

@ -110,7 +110,7 @@ class ImageFont:
except Exception:
pass
else:
if image and image.mode in ("1", "L"):
if image.mode in ("1", "L"):
break
else:
if image: