classes: use self.__class__.__name__ in __repr__
This commit is contained in:
parent
bfe8fb70f6
commit
d0ba568738
17 changed files with 20 additions and 20 deletions
|
@ -77,7 +77,7 @@ class Comment(Base):
|
|||
super().__init__(*args, **kwargs)
|
||||
|
||||
def __repr__(self):
|
||||
return f"<Comment(id={self.id})>"
|
||||
return f"<{self.__class__.__name__}(id={self.id})>"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue