Skip to content

Commit

Permalink
Make get_all() generic over the futures' type
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Feb 18, 2024
1 parent 52ab307 commit ba4573d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pykka/_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ def __await__(self) -> Generator[None, None, T]:


def get_all(
futures: Iterable[Future[Any]],
futures: Iterable[Future[T]],
*,
timeout: Optional[float] = None,
) -> Iterable[Any]:
) -> Iterable[T]:
"""Collect all values encapsulated in the list of futures.
If ``timeout`` is not :class:`None`, the method will wait for a reply for
Expand Down

0 comments on commit ba4573d

Please sign in to comment.