diff --git a/Tests/helper.py b/Tests/helper.py index aa6fa2ba1..863bd87cf 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -266,7 +266,7 @@ def hopper(mode: str | None = None) -> Image.Image: @lru_cache(maxsize=None) -def _cached_hopper(mode: str | None = None) -> Image.Image: +def _cached_hopper(mode: str = None) -> Image.Image: if mode == "F": im = hopper("L").convert(mode) else: