TypeVarTuple#

class astroid.nodes.TypeVarTuple(lineno: int, col_offset: int, parent: NodeNG, *, end_lineno: int, end_col_offset: int)[source]#

Bases: AssignTypeNode

Class representing a ast.TypeVarTuple node.

>>> import astroid
>>> node = astroid.extract_node('type Alias[*Ts] = tuple[*Ts]')
>>> node.type_params[0]
<TypeVarTuple l.1 at 0x7f23b2e4e198>
assigned_stmts(**kwargs: _P.kwargs) Generator[InferenceResult, None, None]#

Returns the assigned statement (non inferred) according to the assignment type. See astroid/protocols.py for actual implementation.

name: AssignName#
postinit(*, name: AssignName) None[source]#