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/wire/thp/handler_provider.py

17 lines
361 B

from typing import TYPE_CHECKING
from trezor import protobuf
from apps.thp import create_session
if TYPE_CHECKING:
from typing import Any, Callable, Coroutine
pass
def get_handler_for_channel_message(
msg: protobuf.MessageType,
) -> Callable[[Any, Any], Coroutine[Any, Any, protobuf.MessageType]]:
return create_session.create_new_session