mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Fix type hint
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
This commit is contained in:
parent
ed5cd18d9c
commit
9f5d6e0c31
|
@ -266,7 +266,7 @@ def hopper(mode: str | None = None) -> Image.Image:
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=None)
|
@lru_cache(maxsize=None)
|
||||||
def _cached_hopper(mode: str | None = None) -> Image.Image:
|
def _cached_hopper(mode: str = None) -> Image.Image:
|
||||||
if mode == "F":
|
if mode == "F":
|
||||||
im = hopper("L").convert(mode)
|
im = hopper("L").convert(mode)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user