ParamSpec¶
- class astroid.nodes.ParamSpec(lineno: int, col_offset: int, parent: NodeNG, *, end_lineno: int, end_col_offset: int)[source]¶
Bases:
AssignTypeNodeClass representing a
ast.ParamSpecnode.>>> 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]¶
Returns the assigned statement (non inferred) according to the assignment type. See astroid/protocols.py for actual implementation.
- name: AssignName¶