def has_value ( cls , value : int ) -> bool : return any ( value == item . value for item in cls )
enum else if python
True if specified value exists in int enum ; otherwise False .
def has_value(cls, value: int) -> bool:
        """True if specified value exists in int enum; otherwise, False."""
        return any(value == item.value for item in cls)