From 4d8812c64febb0ae502f4180b3a15a8c30bd75c5 Mon Sep 17 00:00:00 2001 From: Toshiki Kataoka Date: Fri, 28 Feb 2025 18:52:08 +0900 Subject: [PATCH] fix yield type of `tqdm.as_completed` (#13557) --- stubs/tqdm/tqdm/asyncio.pyi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stubs/tqdm/tqdm/asyncio.pyi b/stubs/tqdm/tqdm/asyncio.pyi index ca28b90f0..ec11fe561 100644 --- a/stubs/tqdm/tqdm/asyncio.pyi +++ b/stubs/tqdm/tqdm/asyncio.pyi @@ -1,5 +1,6 @@ -from _typeshed import Incomplete, SupportsWrite -from collections.abc import AsyncIterator, Awaitable, Callable, Generator, Iterable, Iterator, Mapping +from _typeshed import SupportsWrite +from asyncio import Future +from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping from typing import NoReturn, TypeVar, overload from typing_extensions import Self @@ -48,7 +49,7 @@ class tqdm_asyncio(std_tqdm[_T]): nrows: int | None = ..., colour: str | None = ..., delay: float | None = ..., - ) -> Generator[Incomplete, Incomplete, None]: ... + ) -> Iterator[Future[_T]]: ... @classmethod async def gather( cls,