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

Function get_stub

mypy/stubtest.py:2227–2229  ·  view source on GitHub ↗

Returns a stub object for the given module, if we've built one.

(module: str)

Source from the content-addressed store, hash-verified

2225
2226
2227def get_stub(module: str) -> nodes.MypyFile | None:
2228 """Returns a stub object for the given module, if we've built one."""
2229 return _all_stubs.get(module)
2230
2231
2232def get_typeshed_stdlib_modules(

Callers 4

get_descriptionMethod · 0.85
test_moduleFunction · 0.85
get_mypy_node_for_nameFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…