mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-15 10:42:34 +03:00
Return self on __enter__
This commit is contained in:
parent
68e9de6917
commit
7f03932477
|
@ -692,7 +692,7 @@ class DisabledPipes(list):
|
||||||
self.extend(nlp.remove_pipe(name) for name in names)
|
self.extend(nlp.remove_pipe(name) for name in names)
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
pass
|
return self
|
||||||
|
|
||||||
def __exit__(self, *args):
|
def __exit__(self, *args):
|
||||||
self.restore()
|
self.restore()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user