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 |
|
Base class for predefined stub loaders (builtins/stdlib/typeshed). |
Class |
|
A key to retrieve the module from the ModuleLoader. |
Class |
|
Base class for module loaders. |
Function | internal |
Filepath for pytype's internal pytd files. |
Constant | DEFAULT |
Undocumented |
Constant | PREFIX |
Undocumented |