From 26f51ada13524368a0efde0e2c40e4ca2cf41fc4 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 24 Jun 2024 08:29:24 +1000 Subject: [PATCH] Restored colons --- docs/reference/PixelAccess.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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