[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-06-30 12:21:39 +00:00
parent f57a9d678c
commit 303ec1a95e

View File

@ -865,7 +865,9 @@ class TransposedFont:
def getlength(self, text, *args, **kwargs): def getlength(self, text, *args, **kwargs):
if self.orientation in (Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_270): 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) return self.font.getlength(text, *args, **kwargs)