Skip to content

Commit

Permalink
Clarify that the examples are equivalent
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
  • Loading branch information
radarhere and nulano committed Dec 27, 2023
1 parent 37505a8 commit 6ed83ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/reference/Image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ functions, including functions to load images from files, and to create new
images.

To assist with type hints, ``ImageType`` has been added a simpler way to refer
to the class within the module. ::
to the class within the module. In the following example, the two type
annotations are equivalent::

from PIL import Image, ImageType
im1: Image.Image = Image.new("RGB", (1, 1))
Expand Down

0 comments on commit 6ed83ac

Please sign in to comment.