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: