Skip to content

Commit cca80e2

Browse files
committed
make mypy happy
1 parent bafb968 commit cca80e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Tests/test_pyarrow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def _test_img_equals_pyarray(img: Image.Image, arr: Any, mask) -> None:
2525
for y in range(0, img.size[1], int(img.size[1] / 10)):
2626
if mask:
2727
for ix, elt in enumerate(mask):
28-
assert px[x, y][ix] == arr[y * img.width + x].as_py()[elt]
28+
pixel = px[x, y]
29+
assert isinstance(pixel, tuple)
30+
assert pixel[ix] == arr[y * img.width + x].as_py()[elt]
2931
else:
3032
assert_deep_equal(px[x, y], arr[y * img.width + x].as_py())
3133

0 commit comments

Comments
 (0)