(self, n: ast3.AsyncWith)
| 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: |
nothing calls this directly
no test coverage detected