mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix tqdm.asyncio type inconsistency (#13259)
This commit is contained in:
committed by
GitHub
parent
1964076a8e
commit
d31e3ea11e
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user