module documentation

This module contains the code adjusted from astroid to infer/unpack assigned names from statements.

Meaning understanding stuff like:

a,b,(c,d) = 1,2,[3,4]
Function assend_assigned_stmts Undocumented
Function assign_annassigned_stmts Undocumented
Function assign_assigned_stmts Undocumented
Function assigned_stmts Equivalent to astroid's NodeNG.assigned_stmts() method.
Function for_assigned_stmts Undocumented
Function sequence_assigned_stmts Undocumented
Variable AssignedStmtsCall Undocumented
Variable AssignedStmtsPossibleNode Undocumented
Function _get_assigned_stmts_meth Undocumented
Function _raise_no_assigned_stmts_method Undocumented
Function _resolve_assignment_parts recursive function to infer multiple assignments, currently supports List and Tuple only.
Function _wrap_resolve_assignment_parts Undocumented
Variable _globals Undocumented
def assend_assigned_stmts(self, node=None, context=None, assign_path=None): (source)

Undocumented

Parameters
node:AssignedStmtsPossibleNodeUndocumented
context:InferenceContext|NoneUndocumented
assign_path:list[int]|NoneUndocumented
Returns
AnyUndocumented
def assign_annassigned_stmts(self, node=None, context=None, assign_path=None): (source)

Undocumented

Parameters
node:AssignedStmtsPossibleNodeUndocumented
context:InferenceContext|NoneUndocumented
assign_path:list[int]|NoneUndocumented
Returns
AnyUndocumented
@raise_if_nothing_inferred
def assign_assigned_stmts(self, node=None, context=None, assign_path=None): (source)

Undocumented

Parameters
node:AssignedStmtsPossibleNodeUndocumented
context:InferenceContext|NoneUndocumented
assign_path:list[int]|NoneUndocumented
Returns
AnyUndocumented
def assigned_stmts(self, node=None, context=None, assign_path=None): (source)

Equivalent to astroid's NodeNG.assigned_stmts() method.

Parameters
node:AssignedStmtsPossibleNodeUndocumented
context:OptionalInferenceContextUndocumented
assign_path:list[int]|NoneUndocumented
Returns
InferResultUndocumented
@raise_if_nothing_inferred
def for_assigned_stmts(self, node=None, context=None, assign_path=None): (source)

Undocumented

Parameters
node:AssignedStmtsPossibleNodeUndocumented
context:InferenceContext|NoneUndocumented
assign_path:list[int]|NoneUndocumented
Returns
AnyUndocumented
def sequence_assigned_stmts(self, node=None, context=None, assign_path=None): (source)

Undocumented

Parameters
node:AssignedStmtsPossibleNodeUndocumented
context:InferenceContext|NoneUndocumented
assign_path:list[int]|NoneUndocumented
Returns
AnyUndocumented
AssignedStmtsCall = (source)

Undocumented

AssignedStmtsPossibleNode = (source)

Undocumented

@lru_cache()
def _get_assigned_stmts_meth(node): (source)

Undocumented

Parameters
node:ASTNodeTUndocumented
Returns
AssignedStmtsCallUndocumented
def _raise_no_assigned_stmts_method(self, _, context, __): (source)

Undocumented

Parameters
_:ASTNodeTUndocumented
context:OptionalInferenceContextUndocumented
__:AnyUndocumented
Returns
Iterator[ASTNodeT]Undocumented
def _resolve_assignment_parts(parts, assign_path, context): (source)

recursive function to infer multiple assignments, currently supports List and Tuple only.

Parameters
parts:InferResultInferred values for a given assigment.
assign_path:list[int]Undocumented
context:OptionalInferenceContextUndocumented
def _wrap_resolve_assignment_parts(node, assign_path, context): (source)

Undocumented

Parameters
node:_typing.ASTNodeUndocumented
assign_path:list[int]Undocumented
context:OptionalInferenceContextUndocumented
Returns
AnyUndocumented
_globals = (source)

Undocumented