From ad5891672997499ab7aea13eb8d7267458610ce7 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 23 Apr 2023 00:13:22 +0000 Subject: [PATCH] wizard.py: (trivial) fix type hint and an f-string --- electrum/wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/wizard.py b/electrum/wizard.py index 410e70d29..f0045d3b2 100644 --- a/electrum/wizard.py +++ b/electrum/wizard.py @@ -13,7 +13,7 @@ from electrum.mnemonic import is_any_2fa_seed_type class WizardViewState(NamedTuple): - view: str + view: Optional[str] wizard_data: Dict[str, Any] params: Dict[str, Any] @@ -124,7 +124,7 @@ class AbstractWizard: self._logger.debug(f'view "{view}" last: {l}') return l else: - raise Exception('last handler for view {view} is not callable nor a bool literal') + raise Exception(f'last handler for view {view} is not callable nor a bool literal') def finished(self, wizard_data): self._logger.debug('finished.')