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