class documentation

class AssignmentStmt(Statement): (source)

View In Hierarchy

Assignment statement. The same node class is used for single assignment, multiple assignment (e.g. x, y = z) and chained assignment (e.g. x = y = z), assignments that define new names, and assignments with explicit types ("# type: t" or "x: t [= ...]"). An lvalue can be NameExpr, TupleExpr, ListExpr, MemberExpr, or IndexExpr.

Method __init__ Undocumented
Method accept Undocumented
Class Variable __match_args__ Undocumented
Class Variable __slots__ Undocumented
Instance Variable invalid_recursive_alias Undocumented
Instance Variable is_alias_def Undocumented
Instance Variable is_final_def Undocumented
Instance Variable lvalues Undocumented
Instance Variable new_syntax Undocumented
Instance Variable rvalue Undocumented
Instance Variable type Undocumented
Instance Variable unanalyzed_type Undocumented

Inherited from Node (via Statement):

Method __str__ Undocumented

Inherited from Context (via Statement, Node):

Method set_line If target is a node, pull line (and column) information into this node. If column is specified, this will override any column information coming from a node.
Instance Variable column Undocumented
Instance Variable end_column Undocumented
Instance Variable end_line Undocumented
Instance Variable line Undocumented
def __init__(self, lvalues: list[Lvalue], rvalue: Expression, type: mypy.types.Type|None = None, new_syntax: bool = False): (source)

Undocumented

def accept(self, visitor: StatementVisitor[T]) -> T: (source)

Undocumented

__match_args__: tuple[str, ...] = (source)

Undocumented

__slots__: tuple[str, ...] = (source)

Undocumented

invalid_recursive_alias: bool = (source)

Undocumented

is_alias_def: bool = (source)

Undocumented

is_final_def: bool = (source)

Undocumented

Undocumented

new_syntax = (source)

Undocumented

Undocumented

Undocumented

unanalyzed_type = (source)

Undocumented