Lines Matching refs:value
24 def _int_to_enum(value, enum_klass):
25 """Convert a numeric value to an IntEnum member.
26 If it's not a known member, return the numeric value itself.
29 return enum_klass(value)
31 return value
34 def _enum_to_int(value):
35 """Convert an IntEnum member to a numeric value.
36 If it's not an IntEnum member return the value itself.
39 return int(value)
41 return value