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

Method visit_Dict

mypy/fastparse.py:1543–1547  ·  view source on GitHub ↗
(self, n: ast3.Dict)

Source from the content-addressed store, hash-verified

1541
1542 # Dict(expr* keys, expr* values)
1543 def visit_Dict(self, n: ast3.Dict) -> DictExpr:
1544 e = DictExpr(
1545 list(zip(self.translate_opt_expr_list(n.keys), self.translate_expr_list(n.values)))
1546 )
1547 return self.set_line(e, n)
1548
1549 # Set(expr* elts)
1550 def visit_Set(self, n: ast3.Set) -> SetExpr:

Callers

nothing calls this directly

Calls 6

translate_expr_listMethod · 0.95
set_lineMethod · 0.95
DictExprClass · 0.90
listClass · 0.85
zipFunction · 0.85

Tested by

no test coverage detected