From df53e964d29559564a33ad165fd59652af179cf8 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Thu, 8 Sep 2022 15:09:10 +0900 Subject: [PATCH] Fix mypy --- spacy/cli/project/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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