mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 20:33:24 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
4915f19b13
commit
8e47a6f2c8
|
@ -3069,7 +3069,7 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
|
||||||
return frombytes(mode, size, data, decoder_name, 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
|
Creates an image memory from an object exporting the array interface
|
||||||
(using the buffer protocol)::
|
(using the buffer protocol)::
|
||||||
|
|
Loading…
Reference in New Issue
Block a user