diff --git a/stubs/tqdm/tqdm/asyncio.pyi b/stubs/tqdm/tqdm/asyncio.pyi index c657ca643a9f..c0cd0be8889f 100644 --- a/stubs/tqdm/tqdm/asyncio.pyi +++ b/stubs/tqdm/tqdm/asyncio.pyi @@ -1,7 +1,6 @@ from _typeshed import FloatInt, SupportsWrite -from asyncio import Future -from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping -from typing import TypeVar, overload +from collections.abc import AsyncIterator, Awaitable, Callable, Coroutine, Iterable, Iterator, Mapping +from typing import Any, TypeVar, overload from typing_extensions import Never, Self from .std import tqdm as std_tqdm @@ -49,7 +48,7 @@ class tqdm_asyncio(std_tqdm[_T]): nrows: int | None = ..., colour: str | None = ..., delay: FloatInt | None = ..., - ) -> Iterator[Future[_T]]: ... + ) -> Iterator[Coroutine[Any, Any, _T]]: ... @classmethod async def gather( cls,