MCPcopy Index your code
hub / github.com/python/mypy / visit_AsyncFor

Method visit_AsyncFor

mypy/fastparse.py:1312–1322  ·  view source on GitHub ↗
(self, n: ast3.AsyncFor)

Source from the content-addressed store, hash-verified

1310
1311 # AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)
1312 def visit_AsyncFor(self, n: ast3.AsyncFor) -> ForStmt:
1313 target_type = self.translate_type_comment(n, n.type_comment)
1314 node = ForStmt(
1315 self.visit(n.target),
1316 self.visit(n.iter),
1317 self.as_required_block(n.body),
1318 self.as_block(n.orelse),
1319 target_type,
1320 )
1321 node.is_async = True
1322 return self.set_line(node, n)
1323
1324 # While(expr test, stmt* body, stmt* orelse)
1325 def visit_While(self, n: ast3.While) -> WhileStmt:

Callers

nothing calls this directly

Calls 6

visitMethod · 0.95
as_required_blockMethod · 0.95
as_blockMethod · 0.95
set_lineMethod · 0.95
ForStmtClass · 0.90

Tested by

no test coverage detected