class documentation

class PickledPyiLoader(Loader): (source)

View In Hierarchy

A Loader which always loads pickle instead of PYI, for speed.

Class Method load_from_pickle Load a pytd module from a pickle file.
Method load_module Load (or retrieve from cache) a module and resolve its dependencies.

Inherited from Loader:

Method __init__ Undocumented
Method add_module_prefixes Undocumented
Method concat_all Undocumented
Method finish_and_verify_ast Verify the ast, doing external type resolution first if necessary.
Method get_default_ast Undocumented
Method get_resolved_modules Gets a name -> ResolvedModule map of the loader's resolved modules.
Method has_module_prefix Undocumented
Method import_name Undocumented
Method import_relative Import a module relative to our base module.
Method import_relative_name IMPORT_NAME with level=-1. A name relative to the current directory.
Method load_file Load a module from a filename.
Method lookup_builtin Undocumented
Method resolve_ast Resolve the dependencies of an AST, without adding it to our modules.
Method resolve_pytd Resolve and verify pytd value, using the given ast for local lookup.
Method save_to_pickle Save to a pickle. See PickledPyiLoader.load_from_pickle for reverse.
Instance Variable builtins Undocumented
Instance Variable options Undocumented
Instance Variable typing Undocumented
Method _create_empty Undocumented
Method _import_module_by_name Load a name like 'sys' or 'foo.bar.baz'.
Method _load_ast_dependencies Fill in all ClassType.cls pointers and load reexported modules.
Method _load_builtin Load a pytd/pyi that ships with pytype or typeshed.
Method _process_module Create a module from a loaded ast and save it to the loader cache.
Method _resolve_classtype_pointers Undocumented
Method _resolve_classtype_pointers_for_all_modules Undocumented
Method _resolve_external_and_local_types Undocumented
Method _resolve_external_types Undocumented
Method _try_import_prefix Try importing all prefixes of name, returning the first valid module.
Instance Variable _aliases Undocumented
Instance Variable _builtin_loader Undocumented
Instance Variable _import_name_cache Undocumented
Instance Variable _module_loader Undocumented
Instance Variable _modules Undocumented
Instance Variable _prefixes Undocumented
Instance Variable _resolver Undocumented
Instance Variable _typeshed_loader Undocumented
@classmethod
def load_from_pickle(cls, filename, options, missing_modules=()): (source)

Load a pytd module from a pickle file.

def load_module(self, mod_info, mod_ast=None): (source)

Load (or retrieve from cache) a module and resolve its dependencies.