MCPcopy
hub / github.com/python/mypy / get

Method get

mypy/nodes.py:3907–3912  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

3905 return len(self.type_vars) > 0
3906
3907 def get(self, name: str) -> SymbolTableNode | None:
3908 for cls in self.mro:
3909 n = cls.names.get(name)
3910 if n:
3911 return n
3912 return None
3913
3914 def get_containing_type_info(self, name: str) -> TypeInfo | None:
3915 for cls in self.mro:

Callers 15

__getitem__Method · 0.95
has_readable_memberMethod · 0.95
__init__Method · 0.45
visit_expression_stmtMethod · 0.45
check_first_passMethod · 0.45
check_method_overrideMethod · 0.45
check_overrideMethod · 0.45
check_final_deletableMethod · 0.45
has_new_methodMethod · 0.45

Calls

no outgoing calls

Tested by 13

test_moduleFunction · 0.36
_verify_disjoint_baseFunction · 0.36
verify_varFunction · 0.36
get_stubFunction · 0.36
test_connect_twiceMethod · 0.36
perform_stepMethod · 0.36
run_case_onceMethod · 0.36
test_pep561Function · 0.36