module documentation

Interface for module loaders. A module loader provides two methods for loading a module's AST: find_import(module_name) -> Optional[ModuleInfo] load_ast(module_info) -> Optional[AST] Note that the ModuleInfo's "filename" attribute need not be a literal file path; it just needs to serve as a key for `load_ast` to be able to retrieve the module's type information. Therefore you cannot mix and match ModuleLoader subclasses even though they all use ModuleInfo as a common interface.

Class BuiltinLoader Base class for predefined stub loaders (builtins/stdlib/typeshed).
Class ModuleInfo A key to retrieve the module from the ModuleLoader.
Class ModuleLoader Base class for module loaders.
Function internal_stub_filename Filepath for pytype's internal pytd files.
Constant DEFAULT_PYI_PATH_SUFFIX Undocumented
Constant PREFIX Undocumented
def internal_stub_filename(filename): (source)

Filepath for pytype's internal pytd files.

DEFAULT_PYI_PATH_SUFFIX = (source)

Undocumented

Value
None

Undocumented

Value
'pytd:'