mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-07 13:54:45 +03:00
Clarify that the examples are equivalent
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
parent
37505a81f5
commit
6ed83ac464
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user