[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:46:25 +00:00
parent 4915f19b13
commit 8e47a6f2c8

View File

@ -3069,7 +3069,7 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
return frombytes(mode, size, data, decoder_name, args)
def fromarray(obj: "numpy.typing.ArrayLike", mode: Optional[str] = None) -> Image:
def fromarray(obj: numpy.typing.ArrayLike, mode: Optional[str] = None) -> Image:
"""
Creates an image memory from an object exporting the array interface
(using the buffer protocol)::