Typing Lint

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
wiredfool 2025-01-25 13:42:42 +00:00 committed by GitHub
parent 9d584a1014
commit 2b88b1c49d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3361,7 +3361,8 @@ def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image:
def fromarrow(obj: SupportsArrowArrayIngerface, mode, size) -> ImageFile.ImageFile:
if not hasattr(obj, "__arrow_c_array__"):
raise ValueError("arrow_c_array interface not found")
msg = "arrow_c_array interface not found"
raise ValueError(msg)
(schema_capsule, array_capsule) = obj.__arrow_c_array__()
_im = core.new_arrow(mode, size, schema_capsule, array_capsule)