Add __enter__ and __exit__ to Pool stub (#642)

This commit is contained in:
Dima Gerasimov
2016-10-30 20:18:51 +03:00
committed by Guido van Rossum
parent fa1eeb024e
commit 58d864d726

View File

@@ -60,6 +60,8 @@ class Pool():
def close(self) -> None: ...
def terminate(self) -> None: ...
def join(self) -> None: ...
def __enter__(self) -> 'Pool': ...
def __exit__(self, exc_type, exc_val, exc_tb) -> None: ...
class Process():
# TODO: set type of group to None