From 9f5d6e0c3136ed71fca08f7574b26541f226b60b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sun, 31 Mar 2024 10:02:23 -0600 Subject: [PATCH] Fix type hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ondrej Baranovič --- Tests/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: