Bug report
Bug description:
asyncio.wait is documented to accept an iterable of non-coroutine awaitable objects in its docstring:
The fs iterable must not be empty.
and the python docs page:
The aws iterable must not be empty.
We notice a discrepancy: The parameter is called fs in asyncio.tasks:
async def wait(fs, *, timeout=None, return_when=ALL_COMPLETED)
but aws in the docs. It should be aws for 'awaitables'.
Besides, the following line exists in its source:
if not fs:
raise ValueError('Set of Tasks/Futures is empty.')
This may be error-prone for iterables implementing a __bool__ method with different semantics. This check should either be documented or abolished.
See the source and the docs.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Bug report
Bug description:
asyncio.waitis documented to accept an iterable of non-coroutine awaitable objects in its docstring:and the python docs page:
We notice a discrepancy: The parameter is called
fsinasyncio.tasks:but
awsin the docs. It should beawsfor 'awaitables'.Besides, the following line exists in its source:
This may be error-prone for iterables implementing a
__bool__method with different semantics. This check should either be documented or abolished.See the source and the docs.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response