Usually the __repr__ method returns the what you run to create the instance of that class.
def __repr__(self): return f'Dog({self.name}, {self.age}, {self.gender})'