mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-31 03:36:43 +03:00
Typing Lint
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
af64250144
commit
244dded7a8
|
@ -3360,7 +3360,7 @@ def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image:
|
|||
return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
|
||||
|
||||
|
||||
def fromarrow(obj: SupportsArrowArrayIngerface, mode, size) -> ImageFile.ImageFile:
|
||||
def fromarrow(obj: SupportsArrowArrayInterface, mode, size) -> Image:
|
||||
if not hasattr(obj, "__arrow_c_array__"):
|
||||
msg = "arrow_c_array interface not found"
|
||||
raise ValueError(msg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user