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

Class ExpressionStmt

mypy/nodes.py:1826–1840  ·  view source on GitHub ↗

An expression as a statement, such as print(s).

Source from the content-addressed store, hash-verified

1824
1825
1826class ExpressionStmt(Statement):
1827 """An expression as a statement, such as print(s)."""
1828
1829 __slots__ = ("expr",)
1830
1831 __match_args__ = ("expr",)
1832
1833 expr: Expression
1834
1835 def __init__(self, expr: Expression) -> None:
1836 super().__init__()
1837 self.expr = expr
1838
1839 def accept(self, visitor: StatementVisitor[T]) -> T:
1840 return visitor.visit_expression_stmt(self)
1841
1842
1843class AssignmentStmt(Statement):

Callers 3

visit_ExprMethod · 0.90
visit_expression_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…