Fix type hint

Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
This commit is contained in:
Hugo van Kemenade 2024-03-31 10:02:23 -06:00 committed by GitHub
parent ed5cd18d9c
commit 9f5d6e0c31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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