From efeff93d21ca63e1734f7e387c8180ba7758be78 Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Tue, 20 Sep 2022 21:13:29 +0800 Subject: [PATCH] fix: pillow.ImageDraw.textlength may return float (#8773) --- stubs/Pillow/PIL/ImageDraw.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Pillow/PIL/ImageDraw.pyi b/stubs/Pillow/PIL/ImageDraw.pyi index f4ba2e075..2123d127f 100644 --- a/stubs/Pillow/PIL/ImageDraw.pyi +++ b/stubs/Pillow/PIL/ImageDraw.pyi @@ -116,7 +116,7 @@ class ImageDraw: features: Sequence[str] | None = ..., language: str | None = ..., embedded_color: bool = ..., - ) -> int: ... + ) -> float: ... def textbbox( self, xy: tuple[float, float],