Skip to content

Commit

Permalink
core
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 15, 2024
1 parent c904377 commit 16265a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/reference/PixelAccess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Access using negative indexes is also possible. ::
-----------------------------

.. class:: PixelAccess
:canonical: PIL.core.PixelAccess

.. method:: __setitem__(self, xy, color):

Expand Down
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def frombytes(self, data: bytes, decoder_name: str = "raw", *args) -> None:
msg = "cannot decode image data"
raise ValueError(msg)

def load(self) -> PyAccess.PyAccess | None:
def load(self) -> core.PixelAccess | PyAccess.PyAccess | None:
"""
Allocates storage for the image and loads the pixel data. In
normal cases, you don't need to call this method, since the
Expand Down

0 comments on commit 16265a3

Please sign in to comment.