From 9c456386505c455be712778d6883ee007a998105 Mon Sep 17 00:00:00 2001 From: Summon528 Date: Mon, 19 Nov 2018 16:35:22 +0800 Subject: [PATCH] Fix return annotation for asyncio.as_completed() (#2600) --- stdlib/3/asyncio/tasks.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/asyncio/tasks.pyi b/stdlib/3/asyncio/tasks.pyi index 9de8ef4a4..e8f98bcb2 100644 --- a/stdlib/3/asyncio/tasks.pyi +++ b/stdlib/3/asyncio/tasks.pyi @@ -22,7 +22,7 @@ FIRST_COMPLETED: str ALL_COMPLETED: str def as_completed(fs: Sequence[_FutureT[_T]], *, loop: AbstractEventLoop = ..., - timeout: Optional[float] = ...) -> Iterator[Generator[Any, None, _T]]: ... + timeout: Optional[float] = ...) -> Iterator[Future[_T]]: ... def ensure_future(coro_or_future: _FutureT[_T], *, loop: AbstractEventLoop = ...) -> Future[_T]: ... # Prior to Python 3.7 'async' was an alias for 'ensure_future'.