mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Python 3.8 compatibility
This commit is contained in:
parent
d63caf266d
commit
ef35d79264
|
@ -2204,7 +2204,7 @@ class Image:
|
||||||
msg = "reducing_gap must be 1.0 or greater"
|
msg = "reducing_gap must be 1.0 or greater"
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
|
|
||||||
size = cast(tuple[int, int], tuple(size))
|
size = cast("tuple[int, int]", tuple(size))
|
||||||
|
|
||||||
self.load()
|
self.load()
|
||||||
if box is None:
|
if box is None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user