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 __slots__ 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 get​_column Don't use. Use x.column.
Method get​_line Don't use. Use x.line.
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​_line Undocumented
Instance Variable line Undocumented
def __init__(self, lvalues, rvalue, type=None, new_syntax=False): (source)

Undocumented

Parameters
lvalues:List[Lvalue]Undocumented
rvalue:ExpressionUndocumented
type:Optional[mypy.types.Type]Undocumented
new​_syntax:boolUndocumented
def accept(self, visitor): (source)

Undocumented

Parameters
visitor:StatementVisitor[T]Undocumented
Returns
TUndocumented
__slots__: tuple[str, ...] = (source)

Undocumented

is_alias_def: bool = (source)

Undocumented

is_final_def: bool = (source)

Undocumented

lvalues = (source)

Undocumented

new_syntax = (source)

Undocumented

rvalue = (source)

Undocumented

type = (source)

Undocumented

unanalyzed_type = (source)

Undocumented