Skip to content

Commit 2b88b1c

Browse files
wiredfoolradarhere
andauthored
Typing Lint
Co-authored-by: Andrew Murray <[email protected]>
1 parent 9d584a1 commit 2b88b1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PIL/Image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3361,7 +3361,8 @@ def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image:
33613361

33623362
def fromarrow(obj: SupportsArrowArrayIngerface, mode, size) -> ImageFile.ImageFile:
33633363
if not hasattr(obj, "__arrow_c_array__"):
3364-
raise ValueError("arrow_c_array interface not found")
3364+
msg = "arrow_c_array interface not found"
3365+
raise ValueError(msg)
33653366

33663367
(schema_capsule, array_capsule) = obj.__arrow_c_array__()
33673368
_im = core.new_arrow(mode, size, schema_capsule, array_capsule)

0 commit comments

Comments
 (0)