wizard: add missing imports
This commit is contained in:
@@ -21,6 +21,9 @@ from electrum.logging import get_logger
|
||||
from ..hw_wallet import HW_PluginBase, HardwareClientBase
|
||||
from ..hw_wallet.plugin import LibraryFoundButUnusable, only_hook_if_libraries_available
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from electrum.plugin import DeviceInfo
|
||||
from electrum.wizard import NewWalletWizard
|
||||
|
||||
_logger = get_logger(__name__)
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import struct
|
||||
import sys
|
||||
import time
|
||||
import copy
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from electrum.crypto import sha256d, EncodeAES_bytes, DecodeAES_bytes, hmac_oneshot
|
||||
from electrum.bitcoin import public_key_to_p2pkh
|
||||
@@ -36,6 +37,9 @@ from electrum.plugin import runs_in_hwd_thread, run_in_hwd_thread
|
||||
|
||||
from ..hw_wallet import HW_PluginBase, HardwareClientBase, HardwareHandlerBase
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from electrum.plugin import DeviceInfo
|
||||
from electrum.wizard import NewWalletWizard
|
||||
|
||||
_logger = get_logger(__name__)
|
||||
|
||||
|
||||
@@ -19,6 +19,8 @@ from ..hw_wallet.plugin import is_any_tx_output_on_change_branch, trezor_validat
|
||||
if TYPE_CHECKING:
|
||||
import usb1
|
||||
from .client import KeepKeyClient
|
||||
from electrum.plugin import DeviceInfo
|
||||
from electrum.wizard import NewWalletWizard
|
||||
|
||||
|
||||
# TREZOR initialization methods
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
from abc import ABC, abstractmethod
|
||||
import base64
|
||||
import hashlib
|
||||
from typing import Dict, List, Optional, Sequence, Tuple
|
||||
|
||||
from typing import Dict, List, Optional, Sequence, Tuple, TYPE_CHECKING
|
||||
|
||||
from electrum import bip32, constants, ecc
|
||||
from electrum import descriptor
|
||||
@@ -24,6 +23,9 @@ from electrum.wallet import Standard_Wallet
|
||||
from ..hw_wallet import HardwareClientBase, HW_PluginBase
|
||||
from ..hw_wallet.plugin import is_any_tx_output_on_change_branch, validate_op_return_output, LibraryFoundButUnusable
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from electrum.plugin import DeviceInfo
|
||||
from electrum.wizard import NewWalletWizard
|
||||
|
||||
_logger = get_logger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user