Skip to content

Commit

Permalink
Typing Lint
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <[email protected]>
  • Loading branch information
wiredfool and radarhere authored Jan 25, 2025
1 parent 9d584a1 commit 2b88b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2b88b1c

Please sign in to comment.