mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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)
|
||||
|
||||
|
||||
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
|
||||
(using the buffer protocol)::
|
||||
|
|
Loading…
Reference in New Issue
Block a user