From 5cc4170da31c3155cd155cc383646f87560f73d1 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 27 Dec 2023 08:36:50 +1100 Subject: [PATCH] Updated type hint --- docs/example/anchors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/example/anchors.py b/docs/example/anchors.py index b5d76b4fe..ca28f4587 100644 --- a/docs/example/anchors.py +++ b/docs/example/anchors.py @@ -1,11 +1,11 @@ from __future__ import annotations -from PIL import Image, ImageDraw, ImageFont +from PIL import Image, ImageDraw, ImageFont, ImageType font = ImageFont.truetype("Tests/fonts/NotoSans-Regular.ttf", 16) -def test(anchor: str) -> Image.Image: +def test(anchor: str) -> ImageType: im = Image.new("RGBA", (200, 100), "white") d = ImageDraw.Draw(im) d.line(((100, 0), (100, 100)), "gray")