mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix type of stroke_width parameter in Pillow's ImageDraw.*text* functions (#6008)
This commit is contained in:
@@ -66,7 +66,7 @@ class ImageDraw:
|
||||
direction: Literal["rtl", "ltr", "ttb"] | None = ...,
|
||||
features: Sequence[str] | None = ...,
|
||||
language: str | None = ...,
|
||||
stroke_width: float = ...,
|
||||
stroke_width: int = ...,
|
||||
stroke_fill: _Ink | None = ...,
|
||||
embedded_color: bool = ...,
|
||||
*args,
|
||||
@@ -84,7 +84,7 @@ class ImageDraw:
|
||||
direction: Literal["rtl", "ltr", "ttb"] | None = ...,
|
||||
features: Any | None = ...,
|
||||
language: str | None = ...,
|
||||
stroke_width: float = ...,
|
||||
stroke_width: int = ...,
|
||||
stroke_fill: _Ink | None = ...,
|
||||
embedded_color: bool = ...,
|
||||
) -> None: ...
|
||||
@@ -96,7 +96,7 @@ class ImageDraw:
|
||||
direction: Literal["rtl", "ltr", "ttb"] | None = ...,
|
||||
features: Sequence[str] | None = ...,
|
||||
language: str | None = ...,
|
||||
stroke_width: float = ...,
|
||||
stroke_width: int = ...,
|
||||
) -> tuple[int, int]: ...
|
||||
def multiline_textsize(
|
||||
self,
|
||||
@@ -106,7 +106,7 @@ class ImageDraw:
|
||||
direction: Literal["rtl", "ltr", "ttb"] | None = ...,
|
||||
features: Sequence[str] | None = ...,
|
||||
language: str | None = ...,
|
||||
stroke_width: float = ...,
|
||||
stroke_width: int = ...,
|
||||
) -> tuple[int, int]: ...
|
||||
def textlength(
|
||||
self,
|
||||
@@ -128,7 +128,7 @@ class ImageDraw:
|
||||
direction: Literal["rtl", "ltr", "ttb"] | None = ...,
|
||||
features: Any | None = ...,
|
||||
language: str | None = ...,
|
||||
stroke_width: float = ...,
|
||||
stroke_width: int = ...,
|
||||
embedded_color: bool = ...,
|
||||
) -> tuple[int, int, int, int]: ...
|
||||
def multiline_textbbox(
|
||||
@@ -142,7 +142,7 @@ class ImageDraw:
|
||||
direction: Literal["rtl", "ltr", "ttb"] | None = ...,
|
||||
features: Any | None = ...,
|
||||
language: str | None = ...,
|
||||
stroke_width: float = ...,
|
||||
stroke_width: int = ...,
|
||||
embedded_color: bool = ...,
|
||||
) -> tuple[int, int, int, int]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user