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

Method visit_AsyncWith

mypy/fastparse.py:1350–1359  ·  view source on GitHub ↗
(self, n: ast3.AsyncWith)

Source from the content-addressed store, hash-verified

1348
1349 # AsyncWith(withitem* items, stmt* body, string? type_comment)
1350 def visit_AsyncWith(self, n: ast3.AsyncWith) -> WithStmt:
1351 target_type = self.translate_type_comment(n, n.type_comment)
1352 s = WithStmt(
1353 [self.visit(i.context_expr) for i in n.items],
1354 [self.visit(i.optional_vars) for i in n.items],
1355 self.as_required_block(n.body),
1356 target_type,
1357 )
1358 s.is_async = True
1359 return self.set_line(s, n)
1360
1361 # Raise(expr? exc, expr? cause)
1362 def visit_Raise(self, n: ast3.Raise) -> RaiseStmt:

Callers

nothing calls this directly

Calls 5

visitMethod · 0.95
as_required_blockMethod · 0.95
set_lineMethod · 0.95
WithStmtClass · 0.90

Tested by

no test coverage detected