### Documentation The docs say an inactive task group will close the given coro, but `create_task()` also raises `RuntimeError` `asyncio-task.rst:359`: ``` we will close the given ``coro``. ``` Repro: ```python import asyncio async def nop(): pass async def main(): tg = asyncio.TaskGroup() tg.create_task(nop()) asyncio.run(main()) ``` Will output: ``` RuntimeError: TaskGroup <TaskGroup> has not been entered ``` Proposed fix: mention that it will raise `RuntimeError` Have a fix for that <!-- gh-linked-prs --> ### Linked PRs * gh-156663 * gh-157315 * gh-157316 * gh-157317 <!-- /gh-linked-prs -->
Documentation
The docs say an inactive task group will close the given coro, but
create_task()also raisesRuntimeErrorasyncio-task.rst:359:Repro:
Will output:
Proposed fix: mention that it will raise
RuntimeErrorHave a fix for that
Linked PRs