We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 372cd78 commit 95b662aCopy full SHA for 95b662a
src/datamanager/__main__.py
@@ -730,9 +730,9 @@ def _prune_versions_interactive(ctx: typer.Context) -> None:
730
731
keep_str = questionary.text(
732
"How many of the most recent versions do you want to keep?",
733
- validate=lambda text: text.isdigit()
734
- and int(text) > 0
735
- or "Please enter a positive number.",
+ validate=lambda text: (
+ text.isdigit() and int(text) > 0 or "Please enter a positive number."
+ ),
736
).ask()
737
738
if keep_str is None:
0 commit comments