MCPcopy Create free account
hub / github.com/python/mypy / add_attribute_dependency_for_expr

Method add_attribute_dependency_for_expr

mypy/server/deps.py:934–937  ·  view source on GitHub ↗
(self, e: Expression, name: str)

Source from the content-addressed store, hash-verified

932 return []
933
934 def add_attribute_dependency_for_expr(self, e: Expression, name: str) -> None:
935 typ = self.type_map.get(e)
936 if typ is not None:
937 self.add_attribute_dependency(typ, name)
938
939 def add_iter_dependency(self, node: Expression) -> None:
940 typ = self.type_map.get(node)

Callers 6

visit_assignment_stmtMethod · 0.95
visit_for_stmtMethod · 0.95
visit_with_stmtMethod · 0.95
visit_del_stmtMethod · 0.95
visit_await_exprMethod · 0.95

Calls 2

getMethod · 0.45

Tested by

no test coverage detected