Skip to content

ASYNC300 should allow return asyncio.create_task(...) #398

@sbrudenell

Description

@sbrudenell
import asyncio

async def a():
    pass

def f():
    return asyncio.create_task(a())
$ flake8-async t.py
t.py:7:12: ASYNC300 asyncio.create_task() called without saving the result

This should be allowed, IMO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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