Open BeatsuDev opened 1 year ago
Add __str__ and __repr__ methods that better tell what the object is. For example:
__str__
__repr__
>>> print(tibber.homes[0]) <tibber.types.home.TibberHome object at 0x000002C17D154B20> >>> >>> # Instead: >>> print(tibber.homes[0]) VitaHuset owned by Arya Stark at Winterfell Castle 1. >>>
Just updating this issue with a note: A lot of classes still require these descriptive text representations.
Describe the solution you'd like
Add
__str__
and__repr__
methods that better tell what the object is. For example: