(value)
Convert an IntEnum member to a numeric value.
    If it's not an IntEnum member return the value itself.
Convert an IntEnum member to a numeric value.
    If it's not an IntEnum member return the value itself.
Convert an IntEnum member to a numeric value . If it s not an IntEnum member return the value itself .
def _enum_to_int(value):
    """Convert an IntEnum member to a numeric value.
    If it's not an IntEnum member return the value itself.
    """
    try:
        return int(value)
    except (ValueError, TypeError):
        return value
def _enum_to_int ( value ) : try : return int ( value ) except ( ValueError , TypeError ) : return value