class documentation

class TypeParameter(Node, Type): (source)

Known subclasses: pytype.pytd.pytd.ParamSpec

View In Hierarchy

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_name Undocumented
Property upper_value 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 IterChildren Undocumented
Method PopulateLookupCache Undocumented
Method Replace Undocumented
Method Visit Visitor interface for transforming a tree of nodes to a new tree.
Class Variable __slots__ Undocumented
Method _ToTuple Returns a tuple of the fields of self as a sort key.
Class Variable _name2item Undocumented
def __lt__(self, other): (source)

Smaller than other node? Define so we can have deterministic ordering.

Undocumented

constraints: Tuple[Type, ...] = (source)

Undocumented

Undocumented

Undocumented

Undocumented

@property
upper_value = (source)

Undocumented