Merge pull request #8523 from tannewt/fix_qrio
Fix qrio named_tuple declaration
This commit is contained in:
commit
89d2f86541
@ -80,23 +80,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
|
|||||||
//|
|
//|
|
||||||
|
|
||||||
const mp_obj_namedtuple_type_t qrio_qrposition_type_obj = {
|
const mp_obj_namedtuple_type_t qrio_qrposition_type_obj = {
|
||||||
.base = {
|
NAMEDTUPLE_TYPE_BASE_AND_SLOTS(MP_QSTR_QRPosition),
|
||||||
.base = {
|
|
||||||
.type = &mp_type_type
|
|
||||||
},
|
|
||||||
.flags = MP_TYPE_FLAG_EXTENDED,
|
|
||||||
.name = MP_QSTR_QRPosition,
|
|
||||||
.print = namedtuple_print,
|
|
||||||
.parent = &mp_type_tuple,
|
|
||||||
.make_new = namedtuple_make_new,
|
|
||||||
.attr = namedtuple_attr,
|
|
||||||
MP_TYPE_EXTENDED_FIELDS(
|
|
||||||
.unary_op = mp_obj_tuple_unary_op,
|
|
||||||
.binary_op = mp_obj_tuple_binary_op,
|
|
||||||
.subscr = mp_obj_tuple_subscr,
|
|
||||||
.getiter = mp_obj_tuple_getiter,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
.n_fields = 9,
|
.n_fields = 9,
|
||||||
.fields = {
|
.fields = {
|
||||||
MP_QSTR_top_left_x,
|
MP_QSTR_top_left_x,
|
||||||
|
Loading…
Reference in New Issue
Block a user