Skip to content

Commit

Permalink
Updated type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 26, 2023
1 parent dc78fd7 commit 5cc4170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/example/anchors.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 5cc4170

Please sign in to comment.