Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9e6bd2

Browse files
Allow PIL.Image.MAX_IMAGE_PIXELS to be None (#8876)
`_decompression_bomb_check()` explicitly checks for `None` and handles it as "unlimited".
1 parent fe3a345 commit c9e6bd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stubs/Pillow/PIL/Image.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ CONTAINER: Literal[2]
3939
class DecompressionBombWarning(RuntimeWarning): ...
4040
class DecompressionBombError(Exception): ...
4141

42-
MAX_IMAGE_PIXELS: int
42+
MAX_IMAGE_PIXELS: int | None
4343

4444
NONE: Literal[0]
4545

0 commit comments

Comments
 (0)