mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 09:28:13 +00:00
fixup! refactor(core): abstract cache and context [no changelog]
This commit is contained in:
parent
f51e6dce60
commit
7823b6188b
@ -5,14 +5,9 @@ from storage.cache_common import InvalidSessionError
|
|||||||
from trezor import log, loop, protobuf, utils, workflow
|
from trezor import log, loop, protobuf, utils, workflow
|
||||||
from trezor.enums import FailureType
|
from trezor.enums import FailureType
|
||||||
from trezor.messages import Failure
|
from trezor.messages import Failure
|
||||||
from trezor.wire.context import Context, UnexpectedMessageException, with_context
|
from trezor.wire.context import UnexpectedMessageException, with_context
|
||||||
from trezor.wire.errors import ActionCancelled, DataError, Error, UnexpectedMessage
|
from trezor.wire.errors import ActionCancelled, DataError, Error, UnexpectedMessage
|
||||||
from trezor.wire.protocol_common import Message
|
from trezor.wire.protocol_common import Context, Message
|
||||||
|
|
||||||
# Import all errors into namespace, so that `wire.Error` is available from
|
|
||||||
# other packages.
|
|
||||||
from trezor.wire.errors import * # isort:skip # noqa: F401,F403
|
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Any, Callable, Container
|
from typing import Any, Callable, Container
|
||||||
|
Loading…
Reference in New Issue
Block a user