mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Python 3.10+
This commit is contained in:
parent
8a63980e39
commit
5d19151cd3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user