mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
fromarray: add type hints
This commit is contained in:
parent
aeeb596c98
commit
4915f19b13
|
@ -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, mode=None):
|
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