Updated type hints

This commit is contained in:
Andrew Murray 2025-02-07 11:15:41 +11:00
parent a7aadcce6c
commit 3075200dd5

View File

@ -696,10 +696,10 @@ class ImageDraw:
| ImageFont.TransposedFont | ImageFont.TransposedFont
| None | None
), ),
anchor: str | None, anchor: ImageFont.Anchor | None,
spacing: float, spacing: float,
align: str, align: Align,
direction: str | None, direction: ImageFont.Direction | None,
features: list[str] | None, features: list[str] | None,
language: str | None, language: str | None,
stroke_width: float, stroke_width: float,
@ -707,7 +707,7 @@ class ImageDraw:
font_size: float | None, font_size: float | None,
) -> tuple[ ) -> tuple[
ImageFont.ImageFont | ImageFont.FreeTypeFont | ImageFont.TransposedFont, ImageFont.ImageFont | ImageFont.FreeTypeFont | ImageFont.TransposedFont,
str, ImageFont.Anchor,
list[tuple[tuple[float, float], AnyStr]], list[tuple[tuple[float, float], AnyStr]],
]: ]:
if direction == "ttb": if direction == "ttb":