From e2c2ba4abafc02573f732db8fdb5399723c95fda Mon Sep 17 00:00:00 2001 From: richardpaulhudson Date: Wed, 20 Jul 2022 18:14:38 +0200 Subject: [PATCH] Fix Mypy --- spacy/cli/project/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/cli/project/run.py b/spacy/cli/project/run.py index 31d921067..dcd18ba4e 100644 --- a/spacy/cli/project/run.py +++ b/spacy/cli/project/run.py @@ -159,16 +159,17 @@ def print_run_help(project_dir: Path, subcommand: Optional[str] = None) -> None: steps.append((parallel_char, step)) print(f"\nWorkflow consisting of {len(steps)} commands:") if contains_parallel: - steps_data = [ + parallel_steps_data = [ (f"{i + 1}.", f"{step[0]} {step[1]}", commands[step[1]].get("help", "")) for i, step in enumerate(steps) ] + msg.table(parallel_steps_data) else: steps_data = [ (f"{i + 1}. {step[1]}", commands[step[1]].get("help", "")) for i, step in enumerate(steps) ] - msg.table(steps_data) + msg.table(steps_data) help_cmd = f"{COMMAND} project run [COMMAND] {project_loc} --help" print(f"For command details, run: {help_cmd}") else: