AFAIK, the same pitfall applies to the lower level loop.create_task:
import asyncio
async def foo():
asyncio.create_task(bar()) # Warning here
loop = asyncio.get_running_loop()
loop.create_task(bar()) # No warning here
async def bar():
pass
It would be great if ruff could support this too in some way.
Ruff version: 0.0.252