mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-05 21:10:11 +03:00
Image.open returns an ImageFile instance
This commit is contained in:
parent
e8ab564077
commit
502ccd4548
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user