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

Method __init__

mypy/stubgen.py:247–252  ·  view source on GitHub ↗
(
        self, module: str, path: str | None = None, runtime_all: list[str] | None = None
    )

Source from the content-addressed store, hash-verified

245 """
246
247 def __init__(
248 self, module: str, path: str | None = None, runtime_all: list[str] | None = None
249 ) -> None:
250 self.source = BuildSource(path, module, None)
251 self.runtime_all = runtime_all
252 self.ast: MypyFile | None = None
253
254 def __repr__(self) -> str:
255 return f"StubSource({self.source})"

Callers

nothing calls this directly

Calls 1

BuildSourceClass · 0.90

Tested by

no test coverage detected