diff --git a/stubs/Pillow/PIL/PyAccess.pyi b/stubs/Pillow/PIL/PyAccess.pyi index d6c4b98c03c3..5f357a7daf3f 100644 --- a/stubs/Pillow/PIL/PyAccess.pyi +++ b/stubs/Pillow/PIL/PyAccess.pyi @@ -10,11 +10,11 @@ class PyAccess: image32: Any image: Any def __init__(self, img, readonly: bool = ...) -> None: ... - def __setitem__(self, xy, color) -> None: ... - def __getitem__(self, xy) -> Any: ... - def putpixel(self, xy, color) -> None: ... - def getpixel(self, xy) -> Any: ... - def check_xy(self, xy): ... + def __setitem__(self, xy: tuple[int, int], color) -> None: ... + def __getitem__(self, xy: tuple[int, int]) -> Any: ... + def putpixel(self, xy: tuple[int, int], color) -> None: ... + def getpixel(self, xy: tuple[int, int]) -> Any: ... + def check_xy(self, xy: tuple[int, int]): ... class _PyAccess32_2(PyAccess): def get_pixel(self, x, y): ... diff --git a/stubs/Pillow/PIL/_imaging.pyi b/stubs/Pillow/PIL/_imaging.pyi index a2d16c491236..4977c2b7a06a 100644 --- a/stubs/Pillow/PIL/_imaging.pyi +++ b/stubs/Pillow/PIL/_imaging.pyi @@ -16,10 +16,10 @@ class _PixelAccess: # The name is prefixed here with an underscore as PixelAccess is not # runtime-importable. - def __setitem__(self, xy, color) -> None: ... - def __getitem__(self, xy) -> Any: ... - def putpixel(self, xy, color) -> None: ... - def getpixel(self, xy) -> Any: ... + def __setitem__(self, xy: tuple[int, int], color) -> None: ... + def __getitem__(self, xy: tuple[int, int]) -> Any: ... + def putpixel(self, xy: tuple[int, int], color) -> None: ... + def getpixel(self, xy: tuple[int, int]) -> Any: ... class _Path: def __getattr__(self, item: str) -> Incomplete: ...