-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle None
enter_seed_callback()
response
#1702
Conversation
2cdfbaa
to
009f0d9
Compare
009f0d9
to
8eb55be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tack 8eb55be
def wallet_generate_recover_bip39(method: str, | ||
walletspath: str, | ||
default_wallet_name: str, | ||
display_seed_callback: Callable[[str, str], None], | ||
enter_seed_callback: Optional[Callable[[], Tuple[Optional[str], Optional[str]]]], | ||
enter_wallet_password_callback: Callable[[], str], | ||
enter_wallet_file_name_callback: Callable[[], str], | ||
enter_if_use_seed_extension: Optional[Callable[[], bool]], | ||
enter_seed_extension_callback: Optional[Callable[[], Optional[str]]], | ||
enter_do_support_fidelity_bonds: Callable[[], bool], | ||
mixdepth: int = DEFAULT_MIXDEPTH) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn' t we use black
to consistently format code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is that? Have no experience with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a Python code formatter. See https://black.readthedocs.io/en/stable/
It can be integrated to most IDE or via a pre-commit hook
Real nice I have to say, you just don't have to bother about formatting any-longer, it does it all for you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably something to consider, but I don't see it as a top priority.
Fixes #1698. Also added type hints.