8000 Added type hints · python-pillow/Pillow@316d80a · GitHub
[go: up one dir, main page]

Skip to content

Commit 316d80a

Browse files
committed
Added type hints
1 parent b549228 commit 316d80a

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
@@ -3325,7 +3325,9 @@ def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image:
33253325
return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
33263326

33273327

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

0 commit comments

Comments
 (0)
0