class documentation
Represents a class declaration. Used as dict/set key, so all components must be hashable. Attributes: name: Class name (string) bases: The super classes of this class (instances of pytd.Type). methods: Tuple of methods, classmethods, staticmethods (instances of pytd.Function). constants: Tuple of constant class attributes (instances of pytd.Constant). classes: Tuple of nested classes. slots: A.k.a. __slots__, declaring which instance attributes are writable. template: Tuple of pytd.TemplateItem instances.
Method | __contains__ |
Undocumented |
Method |
|
Version of Lookup that returns None instead of raising. |
Method |
|
Convenience function: Look up a given name in the class namespace. |
Class Variable | bases |
Undocumented |
Class Variable | classes |
Undocumented |
Class Variable | constants |
Undocumented |
Class Variable | decorators |
Undocumented |
Class Variable | metaclass |
Undocumented |
Class Variable | methods |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | slots |
Undocumented |
Class Variable | template |
Undocumented |
Method | _ |
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 |