class documentation
A Loader which always loads pickle instead of PYI, for speed.
Class Method | load |
Load a pytd module from a pickle file. |
Method | load |
Load (or retrieve from cache) a module and resolve its dependencies. |
Inherited from Loader
:
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | concat |
Undocumented |
Method | finish |
Verify the ast, doing external type resolution first if necessary. |
Method | get |
Undocumented |
Method | get |
Gets a name -> ResolvedModule map of the loader's resolved modules. |
Method | has |
Undocumented |
Method | import |
Undocumented |
Method | import |
Import a module relative to our base module. |
Method | import |
IMPORT_NAME with level=-1. A name relative to the current directory. |
Method | load |
Load a module from a filename. |
Method | lookup |
Undocumented |
Method | resolve |
Resolve the dependencies of an AST, without adding it to our modules. |
Method | resolve |
Resolve and verify pytd value, using the given ast for local lookup. |
Method | save |
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 |
Undocumented |
Method | _import |
Load a name like 'sys' or 'foo.bar.baz'. |
Method | _load |
Fill in all ClassType.cls pointers and load reexported modules. |
Method | _load |
Load a pytd/pyi that ships with pytype or typeshed. |
Method | _process |
Create a module from a loaded ast and save it to the loader cache. |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _try |
Try importing all prefixes of name, returning the first valid module. |
Instance Variable | _aliases |
Undocumented |
Instance Variable | _builtin |
Undocumented |
Instance Variable | _import |
Undocumented |
Instance Variable | _module |
Undocumented |
Instance Variable | _modules |
Undocumented |
Instance Variable | _prefixes |
Undocumented |
Instance Variable | _resolver |
Undocumented |
Instance Variable | _typeshed |
Undocumented |
overrides
pytype.load_pytd.Loader.load_module
Load (or retrieve from cache) a module and resolve its dependencies.