From 8bfbe9da014eb30eaddfe3a27e4b53006ffe04be Mon Sep 17 00:00:00 2001 From: grdddj Date: Tue, 19 Jul 2022 12:11:22 +0200 Subject: [PATCH] fix(ui): import type component inside if TYPE_CHECKING branch --- core/src/trezor/ui/layouts/tt_v2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/trezor/ui/layouts/tt_v2/__init__.py b/core/src/trezor/ui/layouts/tt_v2/__init__.py index c6864cc88..3ea55f598 100644 --- a/core/src/trezor/ui/layouts/tt_v2/__init__.py +++ b/core/src/trezor/ui/layouts/tt_v2/__init__.py @@ -6,7 +6,6 @@ from trezor.enums import ButtonRequestType import trezorui2 -from ...components.tt.button import ButtonContent from ...components.tt.confirm import Confirm from ...constants.tt import MONO_ADDR_PER_LINE from ..common import button_request, interact @@ -15,6 +14,7 @@ if TYPE_CHECKING: from typing import Any, Awaitable, Iterable, NoReturn, Sequence from ..common import PropertyType, ExceptionType + from ...components.tt.button import ButtonContent class _RustLayout(ui.Layout):