Python 3.10+

This commit is contained in:
Adam J. Stewart 2024-04-02 17:56:52 +02:00
parent 8a63980e39
commit 5d19151cd3
No known key found for this signature in database
GPG Key ID: C66C0675661156FC

View File

@ -41,7 +41,7 @@ import warnings
from collections.abc import Callable, MutableMapping
from enum import IntEnum
from types import ModuleType
from typing import IO, TYPE_CHECKING, Any, Optional
from typing import IO, TYPE_CHECKING, Any
# VERSION was removed in Pillow 6.0.0.
# PILLOW_VERSION was removed in Pillow 9.0.0.
@ -3071,7 +3071,7 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
def fromarray(
obj, # type: numpy.typing.ArrayLike
mode: Optional[str] = None,
mode: str | None = None,
) -> Image:
"""
Creates an image memory from an object exporting the array interface