module documentation
Construct and collect pytd definitions to build a TypeDeclUnit.
Class |
|
Collect definitions used to build a TypeDeclUnit. |
Exception |
|
Undocumented |
Function | finalize |
Undocumented |
Function | pytd |
Create a pytd.Annotated. |
Function | pytd |
Create a pytd.Literal. |
Class | _ |
Check if a pytd object contains a type of any of the given names. |
Class | _ |
Visitor for inserting TypeParameter instances. |
Class | _ |
Convert some properties to constant types. |
Class | _ |
Visitor for verifying TypeParameters used in mutations are in scope. |
Function | _check |
Validate top-level module functions. |
Function | _contains |
Convenience wrapper for _ContainsAnyType. |
Function | _convert |
Convert everything to a string to store it in pytd.Annotated. |
Function | _maybe |
Resolve the alias if possible. |
Function | _split |
Return [constants], [functions] given a mixed list of definitions. |
Constant | _ANNOTATED |
Undocumented |
Constant | _CALLABLE |
Undocumented |
Constant | _CONCATENATE |
Undocumented |
Constant | _LITERAL |
Undocumented |
Constant | _TUPLE |
Undocumented |
Constant | _TYPING |
Undocumented |
Resolve the alias if possible. Args: alias: A pytd.Alias name_to_class: A class map used for resolution. name_to_constant: A constant map used for resolution. Returns: None, if the alias pointed to an un-aliasable type. The resolved value, if the alias was resolved. The alias, if it was not resolved.