mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user