def __eq__(self, other) -> bool:
    if isinstance(self, other.__class__):
        return (self.__dict__ == other.__dict__)
    return NotImplemented
def __eq__(self, other) -> bool:
    if isinstance(self, other.__class__):
        return (self.__dict__ == other.__dict__)
    return NotImplemented