diff --git a/spacy/cli/project/run.py b/spacy/cli/project/run.py index ceddcf304..13649b8db 100644 --- a/spacy/cli/project/run.py +++ b/spacy/cli/project/run.py @@ -1,4 +1,4 @@ -from typing import Optional, List, Dict, Sequence, Any, Iterable +from typing import Optional, List, Dict, Sequence, Any, Iterable, Union from pathlib import Path from wasabi import msg from wasabi.util import locale_escape @@ -167,6 +167,7 @@ def run_commands( when you want to run the command more like a function. """ for c in commands: + command: Union[str, List[str]] if is_windows: # On Windows we don't rewrite the command because there's no # reliable way to split and reassemble it