Skip to content

Commit d983bc0

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PIL/Image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ 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, xy: tuple[int, int] | list[int], value: float | tuple[int, ...] | list[int]
21782178
) -> None:
21792179
"""
21802180
Modifies the pixel at the given position. The color is given as

0 commit comments

Comments
 (0)