[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-02 15:53:39 +00:00
parent 37ed8c337d
commit 8a63980e39

View File

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