From 303ec1a95e8091c1fa3c0a11da7e8603c55e6a69 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 30 Jun 2022 12:21:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/PIL/ImageFont.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py index 77d2cf0f9..8a55d517f 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -865,7 +865,9 @@ class TransposedFont: def getlength(self, text, *args, **kwargs): if self.orientation in (Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_270): - raise ValueError("text length is undefined for text rotated by 90 or 270 degrees") + raise ValueError( + "text length is undefined for text rotated by 90 or 270 degrees" + ) return self.font.getlength(text, *args, **kwargs)