(enum, i)
return list(enum)[i]
Enums, by default, are not int-comparable, so use an ad-hoc mapping of
    int to enum value at that position
Enums, by default, are not int-comparable, so use an ad-hoc mapping of
    int to enum value at that position
Enums by default are not int - comparable so use an ad - hoc mapping of int to enum value at that position
def index_to_enum(enum, i):
    """Enums, by default, are not int-comparable, so use an ad-hoc mapping of
    int to enum value at that position"""
    return list(enum)[i]
def index_to_enum ( enum , i ) : return list ( enum ) [ i ]