Skip to content

Commit

Permalink
fix: ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardan2009 committed May 29, 2024
1 parent 21022c2 commit 1c3231d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,12 @@ def operator(self, operator: str, *args: Value) -> ResultTuple:
def __repr__(self) -> str:
# TODO: make this overloadable as well
return f"<instance of class {self.parent_class.name}>"

def __help_repr__(self) -> str:
try:
return self.operator("__help_repr__")[0].value
except AttributeError: return f"No custom help for class `{self.parent_class.name}`"
except AttributeError:
return f"No custom help for class `{self.parent_class.name}`"


class BaseClass(Value, ABC):
Expand Down

0 comments on commit 1c3231d

Please sign in to comment.