You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/__init__.py

11 lines
370 B

import trezorconfig as config # noqa: F401
import trezorio as io # noqa: F401
if False:
import trezorio.fatfs as fatfs
else:
# a bug in mypy causes a crash at _usage site_ of the following:
fatfs = io.fatfs
# hence the if False branch that does what mypy understands - but which doesn't
# actually work because `trezorio.fatfs` is not importable.