class Statement(Node): (source)
Known subclasses: mypy.nodes.AssertStmt, mypy.nodes.AssignmentStmt, mypy.nodes.Block, mypy.nodes.BreakStmt, mypy.nodes.ClassDef, mypy.nodes.ContinueStmt, mypy.nodes.Decorator, mypy.nodes.DelStmt, mypy.nodes.ExecStmt, mypy.nodes.ExpressionStmt, mypy.nodes.ForStmt, mypy.nodes.FuncDef, mypy.nodes.GlobalDecl, mypy.nodes.IfStmt, mypy.nodes.ImportBase, mypy.nodes.NonlocalDecl, mypy.nodes.OperatorAssignmentStmt, mypy.nodes.OverloadedFuncDef, mypy.nodes.PassStmt, mypy.nodes.PrintStmt, mypy.nodes.RaiseStmt, mypy.nodes.ReturnStmt, mypy.nodes.TryStmt, mypy.nodes.WhileStmt, mypy.nodes.WithStmt
| Method | accept |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
Inherited from Node:
| Method | __str__ |
Undocumented |
Inherited from Context (via Node):
| Method | __init__ |
Undocumented |
| 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.Node.acceptmypy.nodes.AssertStmt, mypy.nodes.AssignmentStmt, mypy.nodes.Block, mypy.nodes.BreakStmt, mypy.nodes.ClassDef, mypy.nodes.ContinueStmt, mypy.nodes.Decorator, mypy.nodes.DelStmt, mypy.nodes.ExecStmt, mypy.nodes.ExpressionStmt, mypy.nodes.ForStmt, mypy.nodes.FuncDef, mypy.nodes.GlobalDecl, mypy.nodes.IfStmt, mypy.nodes.Import, mypy.nodes.ImportAll, mypy.nodes.ImportFrom, mypy.nodes.NonlocalDecl, mypy.nodes.OperatorAssignmentStmt, mypy.nodes.OverloadedFuncDef, mypy.nodes.PassStmt, mypy.nodes.PrintStmt, mypy.nodes.RaiseStmt, mypy.nodes.ReturnStmt, mypy.nodes.TryStmt, mypy.nodes.WhileStmt, mypy.nodes.WithStmtUndocumented
| Parameters | |
visitor:StatementVisitor[ | Undocumented |
| Returns | |
T | Undocumented |
mypy.nodes.Node.__slots__mypy.nodes.AssertStmt, mypy.nodes.AssignmentStmt, mypy.nodes.Block, mypy.nodes.BreakStmt, mypy.nodes.ClassDef, mypy.nodes.ContinueStmt, mypy.nodes.Decorator, mypy.nodes.DelStmt, mypy.nodes.ExecStmt, mypy.nodes.ExpressionStmt, mypy.nodes.ForStmt, mypy.nodes.FuncDef, mypy.nodes.GlobalDecl, mypy.nodes.IfStmt, mypy.nodes.ImportBase, mypy.nodes.NonlocalDecl, mypy.nodes.OperatorAssignmentStmt, mypy.nodes.OverloadedFuncDef, mypy.nodes.PassStmt, mypy.nodes.PrintStmt, mypy.nodes.RaiseStmt, mypy.nodes.ReturnStmt, mypy.nodes.TryStmt, mypy.nodes.WhileStmt, mypy.nodes.WithStmtUndocumented