From fed788f2eb35d2ae196d0b6a5110a7ff7481c7f7 Mon Sep 17 00:00:00 2001 From: mobyw <44370805+mobyw@users.noreply.github.com> Date: Tue, 5 Sep 2023 20:02:14 +0800 Subject: [PATCH] [Pillow] Fix typing of FreeTypeFont.getlength (#10663) --- stubs/Pillow/PIL/ImageFont.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Pillow/PIL/ImageFont.pyi b/stubs/Pillow/PIL/ImageFont.pyi index e90c4f0cc..08b987e50 100644 --- a/stubs/Pillow/PIL/ImageFont.pyi +++ b/stubs/Pillow/PIL/ImageFont.pyi @@ -44,7 +44,7 @@ class FreeTypeFont: direction: Literal["ltr", "rtl", "ttb"] | None = None, features: Incomplete | None = None, language: str | None = None, - ) -> int: ... + ) -> float: ... def getbbox( self, text: str | bytes,