Skip to content

Commit d31e3ea

Browse files
authored
Fix tqdm.asyncio type inconsistency (#13259)
1 parent 1964076 commit d31e3ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/tqdm/tqdm/asyncio.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from _typeshed import Incomplete, SupportsWrite
2-
from collections.abc import Awaitable, Callable, Generator, Iterable, Iterator, Mapping
2+
from collections.abc import AsyncIterator, Awaitable, Callable, Generator, Iterable, Iterator, Mapping
33
from typing import NoReturn, TypeVar, overload
44
from typing_extensions import Self
55

@@ -84,7 +84,7 @@ class tqdm_asyncio(std_tqdm[_T]):
8484
@overload
8585
def __init__(
8686
self,
87-
iterable: Iterable[_T],
87+
iterable: Iterable[_T] | AsyncIterator[_T],
8888
desc: str | None = ...,
8989
total: float | None = ...,
9090
leave: bool | None = ...,

0 commit comments

Comments
 (0)