Use quoted first arg for cast()

ruff rule TC006
This commit is contained in:
jan 2025-04-15 17:25:56 -07:00
commit 284c7e4fd0
14 changed files with 58 additions and 55 deletions

View file

@ -115,7 +115,7 @@ class Text(RotatableImpl, Shape):
if repr(type(self)) != repr(type(other)):
return repr(type(self)) < repr(type(other))
return id(type(self)) < id(type(other))
other = cast(Text, other)
other = cast('Text', other)
if not self.height == other.height:
return self.height < other.height
if not self.string == other.string: