mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 16:33:49 +08:00
Improve concurrent.futures.wait function stub (#634)
This commit is contained in:
1 parent
96123f8474
commit
d60bea14f6
1 file changed
+2
-2
@@ -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]]: ...
|
||||
Reference in new issue
Block a user