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

Bases: AssignTypeNode

Class representing a ast.ParamSpec node.

>>> import astroid
>>> node = astroid.extract_node('type Alias[**P] = Callable[P, int]')
>>> node.type_params[0]
<ParamSpec 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/ for actual implementation.

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