From d8ec1676818a9aced2e7cddc1c51ae24654bbbf4 Mon Sep 17 00:00:00 2001 From: Fares Ahmed Date: Mon, 6 Sep 2021 11:13:28 +0000 Subject: [PATCH] Fix type of stroke_width parameter in Pillow's ImageDraw.*text* functions (#6008) --- stubs/Pillow/PIL/ImageDraw.pyi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stubs/Pillow/PIL/ImageDraw.pyi b/stubs/Pillow/PIL/ImageDraw.pyi index 795f93e43..b8f197368 100644 --- a/stubs/Pillow/PIL/ImageDraw.pyi +++ b/stubs/Pillow/PIL/ImageDraw.pyi @@ -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]: ...