Starred¶
- class astroid.nodes.Starred(ctx: Context, lineno: int, col_offset: int, parent: NodeNG, *, end_lineno: int | None, end_col_offset: int | None)[source]¶
Bases:
ParentAssignNode
Class representing an
ast.Starred
node.>>> import astroid >>> node = astroid.extract_node('*args') >>> node <Starred l.1 at 0x7f23b2e41978>
- 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.
- ctx¶
Whether the starred item is assigned to or loaded from.