Skip to content

Commit c2f2008

Browse files
committed
Fix qrio named_tuple declaration
1 parent 1328299 commit c2f2008

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

shared-bindings/qrio/QRInfo.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
8080
//|
8181

8282
const mp_obj_namedtuple_type_t qrio_qrposition_type_obj = {
83-
.base = {
84-
.base = {
85-
.type = &mp_type_type
86-
},
87-
.flags = MP_TYPE_FLAG_EXTENDED,
88-
.name = MP_QSTR_QRPosition,
89-
.print = namedtuple_print,
90-
.parent = &mp_type_tuple,
91-
.make_new = namedtuple_make_new,
92-
.attr = namedtuple_attr,
93-
MP_TYPE_EXTENDED_FIELDS(
94-
.unary_op = mp_obj_tuple_unary_op,
95-
.binary_op = mp_obj_tuple_binary_op,
96-
.subscr = mp_obj_tuple_subscr,
97-
.getiter = mp_obj_tuple_getiter,
98-
),
99-
},
83+
NAMEDTUPLE_TYPE_BASE_AND_SLOTS(MP_QSTR_QRPosition),
10084
.n_fields = 9,
10185
.fields = {
10286
MP_QSTR_top_left_x,

0 commit comments

Comments
 (0)