def __eq__(self, other: Any) -> bool:
    if (type(self) is not type(other)):
        return False
    try:
        for (key, value) in self.__dict__.items():
            if (value != getattr(other, key)):
                return False
    except AttributeError:
        return False
    return True
def __eq__(self, other: Any) -> bool:
    if (type(self) is not type(other)):
        return False
    try:
        for (key, value) in self.__dict__.items():
            if (value != getattr(other, key)):
                return False
    except AttributeError:
        return False
    return True