Skip to content

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

Closed

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

Activity

  1. jakkdl commented on Aug 10, 2025

    @jakkdl
    Member

    Agree, happy to review & accept PR!

  2. added a commit that references this issue on Apr 22, 2026
    963d4df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions