Skip to content

Commit 8193c54

Browse files
committed
Update putpixel type hint to allow lists in xy
1 parent 4e0aeba commit 8193c54

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/PIL/Image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,9 @@ def putpalette(
21742174
self.load() # install new palette
21752175

21762176
def putpixel(
2177-
self, xy: tuple[int, int], value: float | tuple[int, ...] | list[int]
2177+
self,
2178+
xy: tuple[int, int] | list[int],
2179+
value: float | tuple[int, ...] | list[int],
21782180
) -> None:
21792181
"""
21802182
Modifies the pixel at the given position. The color is given as

0 commit comments

Comments
 (0)