(self, n: ast3.With)
| 1337 | |
| 1338 | # With(withitem* items, stmt* body, string? type_comment) |
| 1339 | def visit_With(self, n: ast3.With) -> WithStmt: |
| 1340 | target_type = self.translate_type_comment(n, n.type_comment) |
| 1341 | node = WithStmt( |
| 1342 | [self.visit(i.context_expr) for i in n.items], |
| 1343 | [self.visit(i.optional_vars) for i in n.items], |
| 1344 | self.as_required_block(n.body), |
| 1345 | target_type, |
| 1346 | ) |
| 1347 | return self.set_line(node, n) |
| 1348 | |
| 1349 | # AsyncWith(withitem* items, stmt* body, string? type_comment) |
| 1350 | def visit_AsyncWith(self, n: ast3.AsyncWith) -> WithStmt: |
nothing calls this directly
no test coverage detected