Merge pull request #8523 from tannewt/fix_qrio

Fix qrio named_tuple declaration
This commit is contained in:
Dan Halbert 2023-10-25 17:11:39 -04:00 committed by GitHub
commit 89d2f86541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 17 deletions

View File

@ -80,23 +80,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
//|
const mp_obj_namedtuple_type_t qrio_qrposition_type_obj = {
.base = {
.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,
),
},
NAMEDTUPLE_TYPE_BASE_AND_SLOTS(MP_QSTR_QRPosition),
.n_fields = 9,
.fields = {
MP_QSTR_top_left_x,