Use quoted first arg for cast()
ruff rule TC006
This commit is contained in:
parent
1eac3baf6a
commit
284c7e4fd0
14 changed files with 58 additions and 55 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue