We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tqdm.asyncio
The signature of tqdm_asyncio.__init__ wrongly uses iterable: Iterable[_T] when it should beiterable: Iterable[_T] | Iterator[_T] | AsyncIterator[_T].
tqdm_asyncio.__init__
iterable: Iterable[_T]
iterable: Iterable[_T] | Iterator[_T] | AsyncIterator[_T]
The implementation checks for __anext__ and __next__, falling back to iter().
__anext__
__next__
iter()
https://github.com/tqdm/tqdm/blob/0ed5d7f18fa3153834cbac0aa57e8092b217cc16/tqdm/asyncio.py#L26-L34
The text was updated successfully, but these errors were encountered:
Fix tqdm.asyncio type inconsistency
9a1f6dd
Fixes python#13227
Successfully merging a pull request may close this issue.
The signature of
tqdm_asyncio.__init__
wrongly usesiterable: Iterable[_T]
when it should beiterable: Iterable[_T] | Iterator[_T] | AsyncIterator[_T]
.The implementation checks for
__anext__
and__next__
, falling back toiter()
.https://github.com/tqdm/tqdm/blob/0ed5d7f18fa3153834cbac0aa57e8092b217cc16/tqdm/asyncio.py#L26-L34
The text was updated successfully, but these errors were encountered: