Skip to content

Commit 9f41957

Browse files
authored
Added type hints (#8867)
1 parent 8691112 commit 9f41957

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PIL/Image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3326,7 +3326,9 @@ def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image:
33263326
return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
33273327

33283328

3329-
def fromarrow(obj: SupportsArrowArrayInterface, mode, size) -> Image:
3329+
def fromarrow(
3330+
obj: SupportsArrowArrayInterface, mode: str, size: tuple[int, int]
3331+
) -> Image:
33303332
"""Creates an image with zero-copy shared memory from an object exporting
33313333
the arrow_c_array interface protocol::
33323334

0 commit comments

Comments
 (0)