Skip to content

Commit 46ac717

Browse files
committed
Rename qrinfo -> QRInfo
1 parent 14f1d95 commit 46ac717

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

shared-bindings/qrio/QRDecoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ STATIC mp_obj_t qrio_qrdecoder_make_new(const mp_obj_type_t *type, size_t n_args
5454
return self;
5555
}
5656

57-
//| def decode(self, buffer: ReadableBuffer) -> List[qrinfo]:
57+
//| def decode(self, buffer: ReadableBuffer) -> List[QRInfo]:
5858
//| """Decode zero or more QR codes from the given image in L8 format"""
5959
//|
6060
STATIC mp_obj_t qrio_qrdecoder_decode(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

shared-bindings/qrio/__init__.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ MAKE_PRINTER(qrio, qrio_pixel_policy);
6060

6161
MAKE_ENUM_TYPE(qrio, PixelPolicy, qrio_pixel_policy);
6262

63-
//| class qrinfo:
63+
//| class QRInfo:
6464
//| """Information about a decoded QR code"""
6565
//|
6666
//| payload: bytes
@@ -75,7 +75,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
7575
.type = &mp_type_type
7676
},
7777
.flags = MP_TYPE_FLAG_EXTENDED,
78-
.name = MP_QSTR_qrinfo,
78+
.name = MP_QSTR_QRInfo,
7979
.print = namedtuple_print,
8080
.parent = &mp_type_tuple,
8181
.make_new = namedtuple_make_new,
@@ -96,7 +96,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
9696

9797
STATIC const mp_rom_map_elem_t qrio_module_globals_table[] = {
9898
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_qrio) },
99-
{ MP_ROM_QSTR(MP_QSTR_qrinfo), MP_ROM_PTR(&qrio_qrinfo_type_obj) },
99+
{ MP_ROM_QSTR(MP_QSTR_QRInfo), MP_ROM_PTR(&qrio_qrinfo_type_obj) },
100100
{ MP_ROM_QSTR(MP_QSTR_QRDecoder), MP_ROM_PTR(&qrio_qrdecoder_type_obj) },
101101
{ MP_ROM_QSTR(MP_QSTR_PixelPolicy), MP_ROM_PTR(&qrio_pixel_policy_type) },
102102
};

0 commit comments

Comments
 (0)