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

Method visit_Delete

mypy/fastparse.py:1261–1268  ·  view source on GitHub ↗
(self, n: ast3.Delete)

Source from the content-addressed store, hash-verified

1259
1260 # Delete(expr* targets)
1261 def visit_Delete(self, n: ast3.Delete) -> DelStmt:
1262 if len(n.targets) > 1:
1263 tup = TupleExpr(self.translate_expr_list(n.targets))
1264 tup.set_line(n.lineno)
1265 node = DelStmt(tup)
1266 else:
1267 node = DelStmt(self.visit(n.targets[0]))
1268 return self.set_line(node, n)
1269
1270 # Assign(expr* targets, expr? value, string? type_comment, expr? annotation)
1271 def visit_Assign(self, n: ast3.Assign) -> AssignmentStmt:

Callers

nothing calls this directly

Calls 6

translate_expr_listMethod · 0.95
set_lineMethod · 0.95
visitMethod · 0.95
TupleExprClass · 0.90
DelStmtClass · 0.90
lenFunction · 0.85

Tested by

no test coverage detected