diff --git a/spacy/language.py b/spacy/language.py index ddc089bd3..5a85a83ec 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -692,7 +692,7 @@ class DisabledPipes(list): self.extend(nlp.remove_pipe(name) for name in names) def __enter__(self): - pass + return self def __exit__(self, *args): self.restore()