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.
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.