From dd5804d4994d955b24bdcd60cf4e54a8d6634dea Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 16 Aug 2020 14:19:33 +0200 Subject: [PATCH] Update type hints --- spacy/cli/init_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/init_config.py b/spacy/cli/init_config.py index 59c06b75a..aafefd817 100644 --- a/spacy/cli/init_config.py +++ b/spacy/cli/init_config.py @@ -154,7 +154,7 @@ def init_config( save_config(nlp.config, output_file, is_stdout=is_stdout) -def save_config(config: Config, output_file: Path, is_stdout: bool = False): +def save_config(config: Config, output_file: Path, is_stdout: bool = False) -> None: msg = Printer(no_print=is_stdout) if is_stdout: print(config.to_str()) @@ -166,7 +166,7 @@ def save_config(config: Config, output_file: Path, is_stdout: bool = False): print(f"{COMMAND} train {output_file.parts[-1]} {' '.join(variables)}") -def require_spacy_transformers(msg: Printer): +def require_spacy_transformers(msg: Printer) -> None: try: import spacy_transformers # noqa: F401 except ImportError: