Skip to content

Commit

Permalink
Restored colons
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 23, 2024
1 parent 814e193 commit 26f51ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/PixelAccess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 26f51ad

Please sign in to comment.