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

Method visit_index_expr

mypy/literals.py:231–234  ·  view source on GitHub ↗
(self, e: IndexExpr)

Source from the content-addressed store, hash-verified

229 return self.seq_expr(e, "Set")
230
231 def visit_index_expr(self, e: IndexExpr) -> Key | None:
232 if literal(e.index) == LITERAL_YES:
233 return ("Index", literal_hash(e.base), literal_hash(e.index))
234 return None
235
236 def visit_assignment_expr(self, e: AssignmentExpr) -> Key | None:
237 return literal_hash(e.target)

Callers

nothing calls this directly

Calls 2

literalFunction · 0.85
literal_hashFunction · 0.85

Tested by

no test coverage detected