Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

No type comments on AsyncWith/AsyncFor? #27

@afrieder

Description

@afrieder

From Python.asdl in ast35:

For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)
With(withitem* items, stmt* body, string? type_comment)
but
AsyncFor(expr target, expr iter, stmt* body, stmt* orelse)
AsyncWith(withitem* items, stmt* body)

I don't believe there's anything against using type comments in async withs/fors, and this limits how MyPy can analyze them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions