mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +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)
|
||||
|
||||
def __enter__(self):
|
||||
pass
|
||||
return self
|
||||
|
||||
def __exit__(self, *args):
|
||||
self.restore()
|
||||
|
|
Loading…
Reference in New Issue
Block a user