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

Method __init__

mypy/modulefinder.py:32–46  ·  view source on GitHub ↗
(
        self,
        python_path: tuple[str, ...],
        mypy_path: tuple[str, ...],
        package_path: tuple[str, ...],
        typeshed_path: tuple[str, ...],
    )

Source from the content-addressed store, hash-verified

30# Paths to be searched in find_module().
31class SearchPaths:
32 def __init__(
33 self,
34 python_path: tuple[str, ...],
35 mypy_path: tuple[str, ...],
36 package_path: tuple[str, ...],
37 typeshed_path: tuple[str, ...],
38 ) -> None:
39 # where user code is found
40 self.python_path = tuple(map(os.path.abspath, python_path))
41 # from $MYPYPATH or config variable
42 self.mypy_path = tuple(map(os.path.abspath, mypy_path))
43 # from get_site_packages_dirs()
44 self.package_path = tuple(map(os.path.abspath, package_path))
45 # paths in typeshed
46 self.typeshed_path = tuple(map(os.path.abspath, typeshed_path))
47
48 def asdict(self) -> dict[str, tuple[str, ...]]:
49 return {

Callers

nothing calls this directly

Calls 2

tupleClass · 0.85
mapClass · 0.85

Tested by

no test coverage detected