From d31e3ea11e2090afdb639324bf7638891695d1ad Mon Sep 17 00:00:00 2001 From: Konstantin Baikov Date: Thu, 19 Dec 2024 10:48:07 +0100 Subject: [PATCH] Fix tqdm.asyncio type inconsistency (#13259) --- stubs/tqdm/tqdm/asyncio.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/tqdm/tqdm/asyncio.pyi b/stubs/tqdm/tqdm/asyncio.pyi index bef9dc177..ca28b90f0 100644 --- a/stubs/tqdm/tqdm/asyncio.pyi +++ b/stubs/tqdm/tqdm/asyncio.pyi @@ -1,5 +1,5 @@ from _typeshed import Incomplete, SupportsWrite -from collections.abc import Awaitable, Callable, Generator, Iterable, Iterator, Mapping +from collections.abc import AsyncIterator, Awaitable, Callable, Generator, Iterable, Iterator, Mapping from typing import NoReturn, TypeVar, overload from typing_extensions import Self @@ -84,7 +84,7 @@ class tqdm_asyncio(std_tqdm[_T]): @overload def __init__( self, - iterable: Iterable[_T], + iterable: Iterable[_T] | AsyncIterator[_T], desc: str | None = ..., total: float | None = ..., leave: bool | None = ...,