Mypy error -- doesn't like the none return

This commit is contained in:
wiredfool 2025-02-18 23:02:26 +00:00
parent a8d819c442
commit 7d498c3c48

View File

@ -3357,7 +3357,7 @@ def fromarrow(obj: SupportsArrowArrayInterface, mode, size) -> Image:
if _im:
return Image()._new(_im)
return None
raise ValueError("new_arrow returned None without an exception")
def fromqimage(im: ImageQt.QImage) -> ImageFile.ImageFile: