Skip to content

Commit d60bea1

Browse files
Filip Figielgvanrossum
Filip Figiel
authored andcommitted
Improve concurrent.futures.wait function stub (#634)
1 parent 96123f8 commit d60bea1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/3/concurrent/futures/_base.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, Optional
1+
from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, Optional, Set
22
from collections import namedtuple
33

44
FIRST_COMPLETED = ... # type: Any
@@ -41,4 +41,4 @@ class Executor:
4141

4242
def as_completed(fs: Iterable[Future], timeout: Optional[float] = ...) -> Iterator[Future]: ...
4343

44-
def wait(fs: Iterable[Future], timeout: Optional[float] = ..., return_when: str = ...) -> Tuple[Iterable[Future], Iterable[Future]]: ...
44+
def wait(fs: Iterable[Future], timeout: Optional[float] = ..., return_when: str = ...) -> Tuple[Set[Future], Set[Future]]: ...

0 commit comments

Comments
 (0)