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

Method add_operator_method_dependency

mypy/server/deps.py:816–819  ·  view source on GitHub ↗
(self, e: Expression, method: str)

Source from the content-addressed store, hash-verified

814 self.add_operator_method_dependency(right, rev_method)
815
816 def add_operator_method_dependency(self, e: Expression, method: str) -> None:
817 typ = get_proper_type(self.type_map.get(e))
818 if typ is not None:
819 self.add_operator_method_dependency_for_type(typ, method)
820
821 def add_operator_method_dependency_for_type(self, typ: ProperType, method: str) -> None:
822 # Note that operator methods can't be (non-metaclass) methods of type objects

Callers 4

process_lvalueMethod · 0.95
visit_index_exprMethod · 0.95
visit_unary_exprMethod · 0.95
process_binary_opMethod · 0.95

Calls 3

get_proper_typeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected