diff --git a/core/embed/extmod/modtrezorutils/modtrezorutils.c b/core/embed/extmod/modtrezorutils/modtrezorutils.c index e18c0602a..81287990a 100644 --- a/core/embed/extmod/modtrezorutils/modtrezorutils.c +++ b/core/embed/extmod/modtrezorutils/modtrezorutils.c @@ -114,6 +114,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_trezorutils_halt_obj, 0, 1, /// VERSION_PATCH: int /// MODEL: str /// EMULATOR: bool +/// BITCOIN_ONLY: bool STATIC const mp_rom_map_elem_t mp_module_trezorutils_globals_table[] = { {MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorutils)}, diff --git a/core/mocks/generated/trezorutils.pyi b/core/mocks/generated/trezorutils.pyi index ee14bc931..aed9911c0 100644 --- a/core/mocks/generated/trezorutils.pyi +++ b/core/mocks/generated/trezorutils.pyi @@ -33,3 +33,4 @@ VERSION_MINOR: int VERSION_PATCH: int MODEL: str EMULATOR: bool +BITCOIN_ONLY: bool diff --git a/core/src/trezor/utils.py b/core/src/trezor/utils.py index b21ac8bf8..b287c7684 100644 --- a/core/src/trezor/utils.py +++ b/core/src/trezor/utils.py @@ -1,6 +1,6 @@ import gc import sys -from trezorutils import ( # type: ignore[attr-defined] # noqa: F401 +from trezorutils import ( # noqa: F401 BITCOIN_ONLY, EMULATOR, GITREV,