From 6ed83ac46407d9a9b515c013dfe92c48bc823262 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 27 Dec 2023 11:03:12 +1100 Subject: [PATCH] Clarify that the examples are equivalent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ondrej Baranovič --- docs/reference/Image.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst index 1df9f10fd..c8bee1fb5 100644 --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -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))