MCPcopy Index your code
hub / github.com/python/mypy / WhileStmt

Class WhileStmt

mypy/nodes.py:1931–1947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1929
1930
1931class WhileStmt(Statement):
1932 __slots__ = ("expr", "body", "else_body")
1933
1934 __match_args__ = ("expr", "body", "else_body")
1935
1936 expr: Expression
1937 body: Block
1938 else_body: Block | None
1939
1940 def __init__(self, expr: Expression, body: Block, else_body: Block | None) -> None:
1941 super().__init__()
1942 self.expr = expr
1943 self.body = body
1944 self.else_body = else_body
1945
1946 def accept(self, visitor: StatementVisitor[T]) -> T:
1947 return visitor.visit_while_stmt(self)
1948
1949
1950class ForStmt(Statement):

Callers 3

visit_WhileMethod · 0.90
visit_while_stmtMethod · 0.90
read_statementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…