1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-15 17:12:04 +00:00

fix(core): help mypy understand micropython's module management

This commit is contained in:
matejcik 2020-09-14 13:31:29 +02:00 committed by matejcik
parent 396de3f05e
commit 7e5d9e295b
2 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,9 @@
/// WireInterface = Union[HID, WebUSB] /// WireInterface = Union[HID, WebUSB]
/// if False:
/// from . import fatfs, sdcard
STATIC const mp_rom_map_elem_t mp_module_trezorio_globals_table[] = { STATIC const mp_rom_map_elem_t mp_module_trezorio_globals_table[] = {
{MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorio)}, {MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorio)},

View File

@ -193,3 +193,5 @@ TOUCH_START: int # event id of touch start event
TOUCH_MOVE: int # event id of touch move event TOUCH_MOVE: int # event id of touch move event
TOUCH_END: int # event id of touch end event TOUCH_END: int # event id of touch end event
WireInterface = Union[HID, WebUSB] WireInterface = Union[HID, WebUSB]
if False:
from . import fatfs, sdcard