Skip to content

Conversation

@radarhere
Copy link
Member

This test uses an Image instance

def test_getiptcinfo_jpg_none() -> None:
# Arrange
with hopper() as im:
# Act
iptc = IptcImagePlugin.getiptcinfo(im)

but an ImageFile instance is expected.

def getiptcinfo(
im: ImageFile.ImageFile,
) -> dict[tuple[int, int], bytes | list[bytes]] | None:

@hugovk hugovk changed the title Corrected variable type Correct variable type Dec 11, 2025
@hugovk hugovk merged commit 8494b06 into python-pillow:main Dec 11, 2025
55 checks passed
@radarhere radarhere deleted the iptc branch December 11, 2025 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants