Allow PIL.Image.MAX_IMAGE_PIXELS to be None (#8876)

`_decompression_bomb_check()` explicitly checks for `None` and handles it as "unlimited".
This commit is contained in:
Robert Schweizer
2022-10-10 16:26:07 +02:00
committed by GitHub
parent fe3a34503c
commit c9e6bd2df9

View File

@@ -39,7 +39,7 @@ CONTAINER: Literal[2]
class DecompressionBombWarning(RuntimeWarning): ...
class DecompressionBombError(Exception): ...
MAX_IMAGE_PIXELS: int
MAX_IMAGE_PIXELS: int | None
NONE: Literal[0]