|
|
|
@ -15,13 +15,7 @@ from trezor.wire.errors import * # isort:skip # noqa: F401,F403
|
|
|
|
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
|
|
|
from trezorio import WireInterface
|
|
|
|
|
from typing import (
|
|
|
|
|
Any,
|
|
|
|
|
Callable,
|
|
|
|
|
Container,
|
|
|
|
|
Coroutine,
|
|
|
|
|
TypeVar,
|
|
|
|
|
)
|
|
|
|
|
from typing import Any, Callable, Container, Coroutine, TypeVar
|
|
|
|
|
|
|
|
|
|
Msg = TypeVar("Msg", bound=protobuf.MessageType)
|
|
|
|
|
HandlerTask = Coroutine[Any, Any, protobuf.MessageType]
|
|
|
|
|