class documentation
class GenericType(Node, Type): (source)
Known subclasses: pytype.pytd.pytd.CallableType
, pytype.pytd.pytd.Concatenate
, pytype.pytd.pytd.TupleType
Generic type. Takes a base type and type parameters. This is used for homogeneous tuples, lists, dictionaries, user classes, etc. Attributes: base_type: The base type. Instance of Type. parameters: Type parameters. Tuple of instances of Type.
Class Variable | base |
Undocumented |
Class Variable | parameters |
Undocumented |
Property | element |
Type of the contained type, assuming we only have one type parameter. |
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 |