Merge pull request #8760 from radarhere/px

Corrected type check
This commit is contained in:
mergify[bot] 2025-02-17 22:05:00 +00:00 committed by GitHub
commit f6d227e128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ def test_load() -> None:
with Image.open("Tests/images/gbr.gbr") as im:
px = im.load()
assert px is not None
assert im.load()[0, 0] == (0, 0, 0, 0)
assert px[0, 0] == (0, 0, 0, 0)
# Test again now that it has already been loaded once
px = im.load()