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