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