Skip to content

RUF006 not emitted when using asyncio.new_event_loop #9974

@tyilo

Description

@tyilo

Running pipx run ruff test.py --select 'RUF006' on the following test.py file, gives no errors:

import asyncio


async def main():
    pass


loop = asyncio.new_event_loop()
loop.create_task(main())
loop.run_forever()

I'm using ruff 0.2.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions