mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-12 16:55:47 +03:00
Updated type hints
This commit is contained in:
parent
a7aadcce6c
commit
3075200dd5
|
@ -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":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user