From a5cc478ca1dc54d304612e70dd16c8b14aa87658 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 27 Mar 2024 14:39:10 +0100 Subject: [PATCH] Fix frozen build --- core/src/trezor/wire/thp/thp_messages.py | 6 ------ 1 file changed, 6 deletions(-) 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"