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 |
mypy.nodes.Context.__init__Undocumented
| Parameters | |
lvalues:List[ | Undocumented |
rvalue:Expression | Undocumented |
type:Optional[ | Undocumented |
new_syntax:bool | Undocumented |
mypy.nodes.Statement.acceptUndocumented
| Parameters | |
visitor:StatementVisitor[ | Undocumented |
| Returns | |
T | Undocumented |