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

Function get_mypy_node_for_name

mypy/stubtest.py:2025–2031  ·  view source on GitHub ↗
(module: str, type_name: str)

Source from the content-addressed store, hash-verified

2023
2024
2025def get_mypy_node_for_name(module: str, type_name: str) -> mypy.nodes.SymbolNode | None:
2026 stub = get_stub(module)
2027 if stub is None:
2028 return None
2029 if type_name not in stub.names:
2030 return None
2031 return stub.names[type_name].node
2032
2033
2034def get_mypy_type_of_runtime_value(

Callers 1

Calls 1

get_stubFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…