diff --git a/tests/py37_asyncio.py b/tests/py37_asyncio.py index 18997ca7..8bf61e76 100644 --- a/tests/py37_asyncio.py +++ b/tests/py37_asyncio.py @@ -122,7 +122,7 @@ async def double(i): @mark.asyncio async def test_gather(capsys): """Test asyncio gather""" - res = await gather(list(map(double, range(30)))) + res = await gather(*map(double, range(30))) _, err = capsys.readouterr() assert '30/30' in err assert res == list(range(0, 30 * 2, 2)) diff --git a/tqdm/asyncio.py b/tqdm/asyncio.py index 17ca4f18..97c5f88f 100644 --- a/tqdm/asyncio.py +++ b/tqdm/asyncio.py @@ -68,7 +68,7 @@ class tqdm_asyncio(std_tqdm): total=total, **tqdm_kwargs) @classmethod - async def gather(cls, fs, *, loop=None, timeout=None, total=None, **tqdm_kwargs): + async def gather(cls, *fs, loop=None, timeout=None, total=None, **tqdm_kwargs): """ Wrapper for `asyncio.gather`. """