Skip to content

Commit 7d498c3

Browse files
committed
Mypy error -- doesn't like the none return
1 parent a8d819c commit 7d498c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/Image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3357,7 +3357,7 @@ def fromarrow(obj: SupportsArrowArrayInterface, mode, size) -> Image:
33573357
if _im:
33583358
return Image()._new(_im)
33593359

3360-
return None
3360+
raise ValueError("new_arrow returned None without an exception")
33613361

33623362

33633363
def fromqimage(im: ImageQt.QImage) -> ImageFile.ImageFile:

0 commit comments

Comments
 (0)