From 77a08591ad48e0503012881b289391492e03df38 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 13 Jun 2023 10:06:00 +0200 Subject: [PATCH] Format --- spacy/language.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 6d867820a..dc4896e11 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -2419,10 +2419,16 @@ def _get_instantiated_vocab( def _find_missing_components( - pipeline: Dict[str, Dict[str, Any]], pipe_instances: Dict[str, Any], exclude: Iterable[str] + pipeline: Dict[str, Dict[str, Any]], + pipe_instances: Dict[str, Any], + exclude: Iterable[str], ) -> List[str]: missing = [] for name, config in pipeline.items(): - if config.get("factory") == INSTANCE_FACTORY_NAME and name not in pipe_instances and name not in exclude: + if ( + config.get("factory") == INSTANCE_FACTORY_NAME + and name not in pipe_instances + and name not in exclude + ): missing.append(name) return missing