Skip to content

Detect TaskStatus not being used #471

Closed

Description

@A5rocks

I think flake8-async could probably detect that something with a TaskStatus parameter can potentially not call it... of course the rule would be a bit wrong, but I think being overly strict is fine? (e.g. no passing into helper functions, no usage in a loop, no unreachability checks)

See also python-trio/trio#3454. I wanted to do this via types but for backwards compatibility reasons that's not possible.

Activity

  1. added a commit that references this issue on Jul 29, 2026
    1adec9d
  2. added 2 commits that reference this issue on Aug 12, 2026
    7d731aa
    b2b2a5f
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