Browse Source

wizard: improve hww uninitialized default msg. attempt fix flake issue w.r.t ABC

master
Sander van Grieken 2 years ago
parent
commit
50d2cdb1b5
  1. 4
      electrum/gui/qt/wizard/wallet.py
  2. 4
      electrum/plugins/hw_wallet/plugin.py

4
electrum/gui/qt/wizard/wallet.py

@ -1336,4 +1336,6 @@ class WCHWUninitialized(WizardComponent):
def on_ready(self):
_name, _info = self.wizard_data['hardware_device']
self.layout().addWidget(WWLabel(_('This {} is not initialized. Cannot continue').format(_info.model_name)))
label = WWLabel(_('This {} is not initialized. Use manufacturer tooling to initialize the device.').format(_info.model_name))
label.setAlignment(Qt.AlignCenter)
self.layout().addWidget(label)

4
electrum/plugins/hw_wallet/plugin.py

@ -201,7 +201,7 @@ class HardwareClientBase(ABC):
def close(self):
pass
def timeout(self, cutoff) -> None:
def timeout(self, cutoff) -> None: # noqa: B027
pass
@abstractmethod
@ -261,7 +261,7 @@ class HardwareClientBase(ABC):
"""
return self.plugin.name
def manipulate_keystore_dict_during_wizard_setup(self, d: dict) -> None:
def manipulate_keystore_dict_during_wizard_setup(self, d: dict) -> None: # noqa: B027
"""Called during wallet creation in the wizard, before the keystore
is constructed for the first time. 'd' is the dict that will be
passed to the keystore constructor.

Loading…
Cancel
Save