File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ extern const struct _mp_obj_exception_t mp_const_GeneratorExit_obj;
764
764
#define mp_obj_is_str_or_bytes (o ) (mp_obj_is_qstr(o) || (mp_obj_is_obj(o) && ((mp_obj_base_t *)MP_OBJ_TO_PTR(o))->type->binary_op == mp_obj_str_binary_op))
765
765
#define mp_obj_is_dict_or_ordereddict (o ) (mp_obj_is_obj(o) && ((mp_obj_base_t *)MP_OBJ_TO_PTR(o))->type->make_new == mp_obj_dict_make_new)
766
766
#define mp_obj_is_fun (o ) (mp_obj_is_obj(o) && (((mp_obj_base_t *)MP_OBJ_TO_PTR(o))->type->name == MP_QSTR_function))
767
+ // type check is done on getiter method to allow tuple, namedtuple, attrtuple
768
+ #define mp_obj_is_tuple_compatible (o ) (mp_obj_get_type(o)->getiter == mp_obj_tuple_getiter)
767
769
768
770
mp_obj_t mp_obj_new_type (qstr name , mp_obj_t bases_tuple , mp_obj_t locals_dict );
769
771
static inline mp_obj_t mp_obj_new_bool (mp_int_t x ) {
Original file line number Diff line number Diff line change 34
34
35
35
#include "supervisor/shared/translate.h"
36
36
37
- // type check is done on getiter method to allow tuple, namedtuple, attrtuple
38
- #define mp_obj_is_tuple_compatible (o ) (mp_obj_get_type(o)->getiter == mp_obj_tuple_getiter)
39
37
40
38
/******************************************************************************/
41
39
/* tuple */
You can’t perform that action at this time.
0 commit comments