Skip to content

Commit f6e8d89

Browse files
authored
Update putpixel type hint to allow lists in xy (#9585)
2 parents 8f9643e + 8193c54 commit f6e8d89

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
@@ -2167,7 +2167,9 @@ def putpalette(
21672167
self.load() # install new palette
21682168

21692169
def putpixel(
2170-
self, xy: tuple[int, int], value: float | tuple[int, ...] | list[int]
2170+
self,
2171+
xy: tuple[int, int] | list[int],
2172+
value: float | tuple[int, ...] | list[int],
21712173
) -> None:
21722174
"""
21732175
Modifies the pixel at the given position. The color is given as

0 commit comments

Comments
 (0)