diff --git a/core/src/trezor/wire/thp/thp_messages.py b/core/src/trezor/wire/thp/thp_messages.py index 3de4a1434..6f07a8855 100644 --- a/core/src/trezor/wire/thp/thp_messages.py +++ b/core/src/trezor/wire/thp/thp_messages.py @@ -1,5 +1,4 @@ import ustruct # pyright:ignore[reportMissingModuleSource] -from typing import TYPE_CHECKING # pyright: ignore[reportShadowedImports] from storage.cache_thp import BROADCAST_CHANNEL_ID from trezor import protobuf @@ -7,9 +6,6 @@ from trezor import protobuf from .. import message_handler from ..protocol_common import Message -if TYPE_CHECKING: - from typing import TypeVar # pyright: ignore[reportShadowedImports] - CODEC_V1 = 0x3F CONTINUATION_PACKET = 0x80 ENCRYPTED_TRANSPORT = 0x02 @@ -18,8 +14,6 @@ ACK_MESSAGE = 0x20 _ERROR = 0x41 _CHANNEL_ALLOCATION_RES = 0x40 -LoadedMessageType = TypeVar("LoadedMessageType", bound=protobuf.MessageType) - class InitHeader: format_str = ">BHH"