module documentation
Library to take a Python AST and add Pytype type information to it.
Class |
|
Traverses an AST and sets type information on its nodes. |
Exception |
|
Wrap exceptions raised by Pytype. |
Function | annotate |
Infer types for `source`, and return an AST of it with types added. |
Function | infer |
Infer types for the provided source. |
Function | _annotation |
Undocumented |
Infer types for `source`, and return an AST of it with types added. Args: source: Text, the source code to type-infer and parse to an AST. ast_module: An ast-module like object used to parse the source to an AST and traverse the created ast.Module object. pytype_options: pytype.config.Options, the options to pass onto Pytype. Returns: The created Module object from what `ast_factory` returned.