Skip to content

Commit

Permalink
asyncio: require py>=3.6 for awaitable comprehensions
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Mar 3, 2021
1 parent 8fdcddb commit 94009b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tqdm/asyncio.py
Expand Up @@ -17,7 +17,7 @@

class tqdm_asyncio(std_tqdm):
"""
Asynchronous-friendly version of tqdm (Python 3.5+).
Asynchronous-friendly version of tqdm (Python 3.6+).
"""
def __init__(self, iterable=None, *args, **kwargs):
super(tqdm_asyncio, self).__init__(iterable, *args, **kwargs)
Expand Down
6 changes: 3 additions & 3 deletions tqdm/auto.py
Expand Up @@ -4,7 +4,7 @@
Method resolution order:
- `tqdm.autonotebook` without import warnings
- `tqdm.asyncio` on Python3.5+
- `tqdm.asyncio` on Python3.6+
- `tqdm.std` base class
Usage:
Expand All @@ -22,10 +22,10 @@
from .autonotebook import tqdm as notebook_tqdm
from .autonotebook import trange as notebook_trange

if sys.version_info[:2] < (3, 5):
if sys.version_info[:2] < (3, 6):
tqdm = notebook_tqdm
trange = notebook_trange
else: # Python3.5+
else: # Python3.6+
from .asyncio import tqdm as asyncio_tqdm
from .std import tqdm as std_tqdm

Expand Down

0 comments on commit 94009b5

Please sign in to comment.