class documentation

class ForStmt(Statement): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method accept Undocumented
Class Variable __slots__ Undocumented
Instance Variable body Undocumented
Instance Variable else​_body Undocumented
Instance Variable expr Undocumented
Instance Variable index Undocumented
Instance Variable index​_type Undocumented
Instance Variable inferred​_item​_type Undocumented
Instance Variable inferred​_iterator​_type Undocumented
Instance Variable is​_async Undocumented
Instance Variable unanalyzed​_index​_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, index, expr, body, else_body, index_type=None): (source)

Undocumented

Parameters
index:LvalueUndocumented
expr:ExpressionUndocumented
body:BlockUndocumented
else​_body:Optional[Block]Undocumented
index​_type:Optional[mypy.types.Type]Undocumented
def accept(self, visitor): (source)

Undocumented

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

Undocumented

body = (source)

Undocumented

else_body = (source)

Undocumented

expr = (source)

Undocumented

index = (source)

Undocumented

index_type = (source)

Undocumented

inferred_item_type = (source)

Undocumented

inferred_iterator_type = (source)

Undocumented

is_async: bool = (source)

Undocumented

unanalyzed_index_type = (source)

Undocumented