def __eq__(self, other):
    if (type(self) is not type(other)):
        return (self.value == other)
    return (self.value == other.value)
def __eq__(self, other):
    if (type(self) is not type(other)):
        return (self.value == other)
    return (self.value == other.value)