Improve concurrent.futures.wait function stub (#634)

This commit is contained in:
Filip Figiel
2016-10-26 16:19:24 +02:00
committed by Guido van Rossum
parent 96123f8474
commit d60bea14f6

View File

@@ -1,4 +1,4 @@
from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, Optional
from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, Optional, Set
from collections import namedtuple
FIRST_COMPLETED = ... # type: Any
@@ -41,4 +41,4 @@ class Executor:
def as_completed(fs: Iterable[Future], timeout: Optional[float] = ...) -> Iterator[Future]: ...
def wait(fs: Iterable[Future], timeout: Optional[float] = ..., return_when: str = ...) -> Tuple[Iterable[Future], Iterable[Future]]: ...
def wait(fs: Iterable[Future], timeout: Optional[float] = ..., return_when: str = ...) -> Tuple[Set[Future], Set[Future]]: ...