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

Method visit_expression_stmt

mypy/stats.py:225–230  ·  view source on GitHub ↗
(self, o: ExpressionStmt)

Source from the content-addressed store, hash-verified

223 super().visit_assignment_stmt(o)
224
225 def visit_expression_stmt(self, o: ExpressionStmt) -> None:
226 if isinstance(o.expr, (StrExpr, BytesExpr)):
227 # Docstring
228 self.record_line(o.line, TYPE_EMPTY)
229 else:
230 super().visit_expression_stmt(o)
231
232 def visit_pass_stmt(self, o: PassStmt) -> None:
233 self.record_precise_if_checked_scope(o)

Callers

nothing calls this directly

Calls 2

record_lineMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected