tqdm/tqdm

Make tqdm_asyncio an Iterable to avoid warnings from IDEs

johncoxon opened this issue · 1 comments

  • I have marked all applicable categories:
    • documentation request
    • new feature request
  • I have visited the source website, and in particular
    read the known issues
  • I have searched through the issue tracker for duplicates
  • I have mentioned version numbers, operating system and
    environment, where applicable:
    import tqdm, sys
    print(tqdm.__version__, sys.version, sys.platform)

PyCharm shows a warning when using enumerate(tqdm(x)) as recommended in the FAQ, because Expected type 'Iterable' (matched generic type 'Iterable[_T]'), got 'tqdm_asyncio' instead. I think tqdm_asyncio should be Iterable, but looking at the source code, it does not appear to be. This should be changed.

My version numbers etc. are 4.65.0 3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ] darwin.

yes please, this warning is triggering my OCD