Update Tests/test_image_getdata.py

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Yay295 2024-04-06 15:18:16 -05:00 committed by GitHub
parent 6a255de24f
commit 1635e7a571
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ def test_sanity() -> None:
assert data[0] == (20, 20, 70) assert data[0] == (20, 20, 70)
def test_hopper() -> None: def test_mode() -> None:
def getdata(mode: str) -> tuple[float | tuple[int, ...], int, int]: def getdata(mode: str) -> tuple[float | tuple[int, ...], int, int]:
im = hopper(mode).resize((32, 30), Image.Resampling.NEAREST) im = hopper(mode).resize((32, 30), Image.Resampling.NEAREST)
data = im.getdata() data = im.getdata()