Python 3.8 compatibility

This commit is contained in:
Sebastian Rittau 2024-05-08 12:14:37 +02:00
parent d63caf266d
commit ef35d79264

View File

@ -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: