(self, n: ast3.List)
| 1739 | |
| 1740 | # List(expr* elts, expr_context ctx) |
| 1741 | def visit_List(self, n: ast3.List) -> ListExpr | TupleExpr: |
| 1742 | expr_list: list[Expression] = [self.visit(e) for e in n.elts] |
| 1743 | if isinstance(n.ctx, ast3.Store): |
| 1744 | # [x, y] = z and (x, y) = z means exactly the same thing |
| 1745 | e: ListExpr | TupleExpr = TupleExpr(expr_list) |
| 1746 | else: |
| 1747 | e = ListExpr(expr_list) |
| 1748 | return self.set_line(e, n) |
| 1749 | |
| 1750 | # Tuple(expr* elts, expr_context ctx) |
| 1751 | def visit_Tuple(self, n: ast3.Tuple) -> TupleExpr: |
nothing calls this directly
no test coverage detected