diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 5b671857c..bef7dd8f5 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -3325,7 +3325,9 @@ def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image: return frombuffer(mode, size, obj, "raw", rawmode, 0, 1) -def fromarrow(obj: SupportsArrowArrayInterface, mode, size) -> Image: +def fromarrow( + obj: SupportsArrowArrayInterface, mode: str, size: tuple[int, int] +) -> Image: """Creates an image with zero-copy shared memory from an object exporting the arrow_c_array interface protocol::