@unbox(types.EnumMember)
def unbox_enum(typ, obj, c):
 valobj = c.pyapi.object_getattr_string(obj, 'value')
 return c.unbox(typ.dtype, valobj)

@ unbox ( types . EnumMember ) def unbox_enum ( typ , obj , c ) : valobj = c . pyapi . object_getattr_string ( obj , 'value' ) return c . unbox ( typ . dtype , valobj )
convert an enum members value to its native value .