mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-11 07:34:54 +03:00
Fix Mypy
This commit is contained in:
parent
4902dd68be
commit
e2c2ba4aba
|
@ -159,16 +159,17 @@ def print_run_help(project_dir: Path, subcommand: Optional[str] = None) -> None:
|
||||||
steps.append((parallel_char, step))
|
steps.append((parallel_char, step))
|
||||||
print(f"\nWorkflow consisting of {len(steps)} commands:")
|
print(f"\nWorkflow consisting of {len(steps)} commands:")
|
||||||
if contains_parallel:
|
if contains_parallel:
|
||||||
steps_data = [
|
parallel_steps_data = [
|
||||||
(f"{i + 1}.", f"{step[0]} {step[1]}", commands[step[1]].get("help", ""))
|
(f"{i + 1}.", f"{step[0]} {step[1]}", commands[step[1]].get("help", ""))
|
||||||
for i, step in enumerate(steps)
|
for i, step in enumerate(steps)
|
||||||
]
|
]
|
||||||
|
msg.table(parallel_steps_data)
|
||||||
else:
|
else:
|
||||||
steps_data = [
|
steps_data = [
|
||||||
(f"{i + 1}. {step[1]}", commands[step[1]].get("help", ""))
|
(f"{i + 1}. {step[1]}", commands[step[1]].get("help", ""))
|
||||||
for i, step in enumerate(steps)
|
for i, step in enumerate(steps)
|
||||||
]
|
]
|
||||||
msg.table(steps_data)
|
msg.table(steps_data)
|
||||||
help_cmd = f"{COMMAND} project run [COMMAND] {project_loc} --help"
|
help_cmd = f"{COMMAND} project run [COMMAND] {project_loc} --help"
|
||||||
print(f"For command details, run: {help_cmd}")
|
print(f"For command details, run: {help_cmd}")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user