mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-24 05:12:02 +00:00
Fix import formatting
This commit is contained in:
parent
97f40631f9
commit
7007b7001d
@ -3,8 +3,8 @@ import gc
|
||||
from micropython import const
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from trezor import utils
|
||||
from storage.cache_common import InvalidSessionError, SessionlessCache
|
||||
from trezor import utils
|
||||
|
||||
SESSIONLESS_FLAG = const(128)
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
import builtins
|
||||
from micropython import const
|
||||
from typing import TYPE_CHECKING
|
||||
from trezor import utils
|
||||
|
||||
from storage.cache_common import DataCache
|
||||
from trezor import utils
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import TypeVar
|
||||
|
@ -5,7 +5,6 @@ from typing import TYPE_CHECKING
|
||||
from storage.cache_common import DataCache, InvalidSessionError
|
||||
from trezor import utils
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import TypeVar
|
||||
|
||||
|
@ -15,9 +15,9 @@ for ButtonRequests. Of course, `context.wait()` transparently works in such situ
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import trezor.wire.protocol as protocol
|
||||
from trezor import log, loop, protobuf
|
||||
|
||||
import trezor.wire.protocol as protocol
|
||||
from .protocol_common import Message
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
@ -1,7 +1,8 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from trezor import utils
|
||||
from trezor.wire import codec_v1, thp_v1
|
||||
from trezor.wire.protocol_common import Message
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from trezorio import WireInterface
|
||||
|
@ -1,12 +1,13 @@
|
||||
import ustruct
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from storage import cache_thp as storage_thp_cache
|
||||
from storage.cache_thp import SessionThpCache
|
||||
from trezor.wire.protocol_common import WireError
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from trezorio import WireInterface
|
||||
from enum import IntEnum
|
||||
from trezorio import WireInterface
|
||||
else:
|
||||
IntEnum = object
|
||||
|
||||
|
@ -1,15 +1,13 @@
|
||||
import ustruct
|
||||
from micropython import const
|
||||
from typing import TYPE_CHECKING
|
||||
from storage.cache_thp import SessionThpCache, BROADCAST_CHANNEL_ID
|
||||
|
||||
import trezor.wire.thp_session as THP
|
||||
from storage.cache_thp import BROADCAST_CHANNEL_ID, SessionThpCache
|
||||
from trezor import io, loop, utils
|
||||
from trezor.crypto import crc
|
||||
from trezor.wire.protocol_common import Message
|
||||
import trezor.wire.thp_session as THP
|
||||
from trezor.wire.thp_session import (
|
||||
ThpError,
|
||||
SessionState
|
||||
)
|
||||
from trezor.wire.thp_session import SessionState, ThpError
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from trezorio import WireInterface
|
||||
|
Loading…
Reference in New Issue
Block a user