From 8193c54cc062e6bf9387cb77b0461f3808480830 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 23 Apr 2026 21:17:23 +1000 Subject: [PATCH] Update putpixel type hint to allow lists in xy --- src/PIL/Image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 574980771f9..fdec89f4c91 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2174,7 +2174,9 @@ def putpalette( self.load() # install new palette def putpixel( - self, xy: tuple[int, int], value: float | tuple[int, ...] | list[int] + self, + xy: tuple[int, int] | list[int], + value: float | tuple[int, ...] | list[int], ) -> None: """ Modifies the pixel at the given position. The color is given as