(value, enum_klass)
Convert a numeric family value to an IntEnum member.

    If it's not a known member, return the numeric value itself.
Convert a numeric family value to an IntEnum member.
Convert a numeric family value to an IntEnum member .
def _intenum_converter(value, enum_klass):
    """Convert a numeric family value to an IntEnum member.

    If it's not a known member, return the numeric value itself.
    """
    try:
        return enum_klass(value)
    except ValueError:
        return value
def _intenum_converter ( value , enum_klass ) : try : return enum_klass ( value ) except ValueError : return value