Skip to content

tqdm.asyncio type inconsistency #13227

Closed
@mattmess1221

Description

@mattmess1221

The signature of tqdm_asyncio.__init__ wrongly uses iterable: Iterable[_T] when it should beiterable: Iterable[_T] | Iterator[_T] | AsyncIterator[_T].

The implementation checks for __anext__ and __next__, falling back to iter().

https://github.com/tqdm/tqdm/blob/0ed5d7f18fa3153834cbac0aa57e8092b217cc16/tqdm/asyncio.py#L26-L34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions