From 050143f2b1e287602d1d566e514b0aad41220eb1 Mon Sep 17 00:00:00 2001 From: Mihnea Giurgea Date: Tue, 26 Jan 2016 11:46:47 -0800 Subject: [PATCH] Fix stubs for concurrent.futures --- third_party/2.7/concurrent/futures/__init__.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/2.7/concurrent/futures/__init__.pyi b/third_party/2.7/concurrent/futures/__init__.pyi index 0e97a0a0a..e2f74559a 100644 --- a/third_party/2.7/concurrent/futures/__init__.pyi +++ b/third_party/2.7/concurrent/futures/__init__.pyi @@ -19,6 +19,8 @@ class Executor: def submit(self, fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ... def map(self, func: Callable[..., _T], *iterables: Any, timeout: float = ...) -> Iterable[_T]: ... def shutdown(self, wait: bool = ...) -> None: ... + def __enter__(self) -> Executor: ... + def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool: ... class ThreadPoolExecutor(Executor): def __init__(self, max_workers: int) -> None: ...