def __eq__(self, other: Any) -> bool:
    if isinstance(other, Metric):
        return (self.value() == other.value())
    else:
        return (self.value() == other)
def __eq__(self, other: Any) -> bool:
    if isinstance(other, Metric):
        return (self.value() == other.value())
    else:
        return (self.value() == other)