mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f57a9d678c
commit
303ec1a95e
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user