class documentation
Represents template name for generic types. This is used for classes and signatures. The 'template' field of both is a list of TemplateItems. Note that *using* the template happens through TypeParameters. E.g. in: class A<T>: def f(T x) -> T both the "T"s in the definition of f() are using pytd.TypeParameter to refer to the TemplateItem in class A's template. Attributes: type_param: the TypeParameter instance used. This is the actual instance that's used wherever this type parameter appears, e.g. within a class.
Class Variable | type |
Undocumented |
Property | full |
Undocumented |
Property | name |
Undocumented |
Inherited from Node
:
Method | __ge__ |
Undocumented |
Method | __gt__ |
Larger than other node? Define so we can have deterministic ordering. |
Method | __iter__ |
Undocumented |
Method | __le__ |
Undocumented |
Method | __lt__ |
Smaller than other node? Define so we can have deterministic ordering. |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Visitor interface for transforming a tree of nodes to a new tree. |
Class Variable | __slots__ |
Undocumented |
Method | _ |
Returns a tuple of the fields of self as a sort key. |
Class Variable | _name2item |
Undocumented |