Skip to content

Commit 95b662a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 372cd78 commit 95b662a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/datamanager/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,9 @@ def _prune_versions_interactive(ctx: typer.Context) -> None:
730730

731731
keep_str = questionary.text(
732732
"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.",
733+
validate=lambda text: (
734+
text.isdigit() and int(text) > 0 or "Please enter a positive number."
735+
),
736736
).ask()
737737

738738
if keep_str is None:

0 commit comments

Comments
 (0)