Clarify that the examples are equivalent

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
Andrew Murray 2023-12-27 11:03:12 +11:00
parent 37505a81f5
commit 6ed83ac464

View File

@ -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))