class documentation
class TypeParameter(Node, Type): (source)
Known subclasses: pytype.pytd.pytd.ParamSpec
Represents a type parameter. A type parameter is a bound variable in the context of a function or class definition. It specifies an equivalence between types. For example, this defines an identity function: def f(x: T) -> T Attributes: name: Name of the parameter. E.g. "T". scope: Fully-qualified name of the class or function this parameter is bound to. E.g. "mymodule.MyClass.mymethod", or None.
Method | __lt__ |
Smaller than other node? Define so we can have deterministic ordering. |
Class Variable | bound |
Undocumented |
Class Variable | constraints |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | scope |
Undocumented |
Property | full |
Undocumented |
Property | upper |
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 |
|
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 |
overrides
pytype.pytd.parse.node.Node.__lt__
Smaller than other node? Define so we can have deterministic ordering.