Image.open returns an ImageFile instance

This commit is contained in:
Andrew Murray 2024-04-05 05:11:05 +11:00
parent e8ab564077
commit 502ccd4548

View File

@ -3222,7 +3222,7 @@ def _decompression_bomb_check(size: tuple[int, int]) -> None:
)
def open(fp, mode="r", formats=None) -> Image:
def open(fp, mode="r", formats=None) -> ImageFile.ImageFile:
"""
Opens and identifies the given image file.