mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 05:04:44 +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:
1 parent
fe3a34503c
commit
c9e6bd2df9
1 file changed
+1
-1
@@ -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