mirror of
https://github.com/solero/houdini.git
synced 2024-11-12 13:48:20 +00:00
Give penguin class a __repr__ method
This commit is contained in:
parent
3e576ba602
commit
d292407dc7
@ -34,3 +34,8 @@ class Penguin(Spheniscidae):
|
||||
|
||||
async def add_inbox(self, postcard):
|
||||
pass
|
||||
|
||||
def __repr__(self):
|
||||
if self.data is not None:
|
||||
return '<Penguin ID=\'{}\' Username=\'{}\'>'.format(self.data.ID, self.data.Username)
|
||||
return super().__repr__()
|
||||
|
Loading…
Reference in New Issue
Block a user