Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RUF006 not emitted when using asyncio.new_event_loop #9974

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions