Skip to content

Detect TaskStatus not being used #471

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.

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