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

Method visit_Subscript

mypy/fastparse.py:1726–1728  ·  view source on GitHub ↗
(self, n: ast3.Subscript)

Source from the content-addressed store, hash-verified

1724
1725 # Subscript(expr value, slice slice, expr_context ctx)
1726 def visit_Subscript(self, n: ast3.Subscript) -> IndexExpr:
1727 e = IndexExpr(self.visit(n.value), self.visit(n.slice))
1728 return self.set_line(e, n)
1729
1730 # Starred(expr value, expr_context ctx)
1731 def visit_Starred(self, n: Starred) -> StarExpr:

Callers

nothing calls this directly

Calls 3

visitMethod · 0.95
set_lineMethod · 0.95
IndexExprClass · 0.90

Tested by

no test coverage detected