diff --git a/docs/reference/PixelAccess.rst b/docs/reference/PixelAccess.rst index 1ac3d034b49..8676385398a 100644 --- a/docs/reference/PixelAccess.rst +++ b/docs/reference/PixelAccess.rst @@ -46,7 +46,7 @@ Access using negative indexes is also possible. :: .. class:: PixelAccess :canonical: PIL.Image.core.PixelAccess - .. method:: __getitem__(self, xy: tuple[int, int]) -> float | tuple[int, ...] + .. method:: __getitem__(self, xy: tuple[int, int]) -> float | tuple[int, ...]: Returns the pixel at x,y. The pixel is returned as a single value for single band images or a tuple for multi-band images. @@ -55,7 +55,7 @@ Access using negative indexes is also possible. :: :returns: a pixel value for single band images, a tuple of pixel values for multiband images. - .. method:: __setitem__(self, xy: tuple[int, int], color: float | tuple[int, ...]) -> None + .. method:: __setitem__(self, xy: tuple[int, int], color: float | tuple[int, ...]) -> None: Modifies the pixel at x,y. The color is given as a single numerical value for single band images, and a tuple for