mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-20 09:12:00 +03:00
fix mypy warning in test_open_tiff_uint16_multiband()
This commit is contained in:
parent
2426e573d3
commit
3cf311bc6c
|
@ -898,9 +898,11 @@ class TestFileTiff:
|
|||
def check_pixel(
|
||||
im: Image.Image, expected_pixel: tuple[int, ...], pos: tuple[int, int]
|
||||
) -> None:
|
||||
actual_pixel = im.getpixel((0, 0))
|
||||
if isinstance(actual_pixel, int):
|
||||
actual_pixel = (actual_pixel,)
|
||||
actual_pixel = im.getpixel(pos)
|
||||
if actual_pixel is None:
|
||||
actual_pixel = (-1,)
|
||||
elif not isinstance(actual_pixel, tuple):
|
||||
actual_pixel = (int(actual_pixel),)
|
||||
assert actual_pixel == expected_pixel
|
||||
|
||||
def check_image(
|
||||
|
|
Loading…
Reference in New Issue
Block a user