fix: no implicit optional (#7984)

This commit is contained in:
Dhruv Manilawala
2022-11-15 19:25:14 +05:30
committed by GitHub
parent 316e71b034
commit 3bf86b91e7
6 changed files with 6 additions and 6 deletions

View File

@@ -256,7 +256,7 @@ def valid_input(
input_msg: str,
err_msg: str,
condition: Callable[[num], bool] = lambda x: True,
default: str = None,
default: str | None = None,
) -> num:
"""
Ask for user value and validate that it fulfill a condition.