Updated type hint

This commit is contained in:
Andrew Murray 2023-12-27 08:36:50 +11:00
parent dc78fd7de0
commit 5cc4170da3

View File

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