From 334f1f98d855e21fe57bc21437365db50908ef09 Mon Sep 17 00:00:00 2001 From: explosion-bot Date: Fri, 9 Jul 2021 08:06:06 +0000 Subject: [PATCH] Auto-format code with black --- spacy/language.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 927ed0037..b60c92158 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1740,10 +1740,16 @@ class Language: listeners_replaced = True with warnings.catch_warnings(): warnings.filterwarnings("ignore", message="\\[W113\\]") - nlp.add_pipe(source_name, source=source_nlps[model], name=pipe_name) + nlp.add_pipe( + source_name, source=source_nlps[model], name=pipe_name + ) if model not in source_nlp_vectors_hashes: - source_nlp_vectors_hashes[model] = hash(source_nlps[model].vocab.vectors.to_bytes()) - nlp.meta["_sourced_vectors_hashes"][pipe_name] = source_nlp_vectors_hashes[model] + source_nlp_vectors_hashes[model] = hash( + source_nlps[model].vocab.vectors.to_bytes() + ) + nlp.meta["_sourced_vectors_hashes"][ + pipe_name + ] = source_nlp_vectors_hashes[model] # Delete from cache if listeners were replaced if listeners_replaced: del source_nlps[model]