module documentation

This module is responsible for finding stub files.

Function find_typeshed Undocumented
Function get_search_path Undocumented
Function get_stub_file_name Undocumented
Function get_typeshed_versions Undocumented
Function parse_stub_file Undocumented
Type Alias PythonVersion Undocumented
Class _VersionData Undocumented
Function _find_stub_in_dir Undocumented
Function _get_all_stub_files_from_directory Undocumented
Function _parse_version Undocumented
Function _path_to_module Returns the module name corresponding to a file path.
Variable _DirEntry Undocumented
def find_typeshed() -> Path: (source)

Undocumented

@lru_cache()
def get_search_path(typeshed_dir: Path, pyversion: Tuple[int, int]) -> Tuple[Path, ...]: (source)

Undocumented

def get_stub_file_name(module_name: ModulePath, search_context: SearchContext) -> Optional[Path]: (source)

Undocumented

@lru_cache()
def get_typeshed_versions(typeshed: Path) -> Dict[str, _VersionData]: (source)

Undocumented

def parse_stub_file(path: Path) -> ast.AST: (source)

Undocumented

PythonVersion = (source)

Undocumented

Value
Tuple[int, int]
def _find_stub_in_dir(stubdir: Path, module: ModulePath) -> Optional[Path]: (source)

Undocumented

def _get_all_stub_files_from_directory(directory: _DirEntry, root_directory: Path, seen: Set[str]) -> Generator[Tuple[str, Path], None, Set[str]]: (source)

Undocumented

def _parse_version(version: str) -> PythonVersion: (source)

Undocumented

def _path_to_module(path: Path) -> str: (source)

Returns the module name corresponding to a file path.

_DirEntry = (source)

Undocumented