This repository has been archived on 2022-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
2022-06-06 01:58:53 +01:00

15 lines
432 B
Python

""" Model class """
class Model():
"""
Base class for Models within Ergast-py
"""
def __str__(self) -> str:
members = ', '.join(f"{key}={value}" for key, value in self.__dict__.items())
return f"{type(self).__name__}({members})"
def __repr__(self) -> str:
members = ', '.join(f"{key}={value}" for key, value in self.__dict__.items())
return f"{type(self).__name__}({members})"