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

Method visit_str_expr

mypy/stubgen.py:328–329  ·  view source on GitHub ↗
(self, node: StrExpr)

Source from the content-addressed store, hash-verified

326 return repr(node.value)
327
328 def visit_str_expr(self, node: StrExpr) -> str:
329 return self._visit_literal_node(node)
330
331 def visit_bytes_expr(self, node: BytesExpr) -> str:
332 return f"b{self._visit_literal_node(node)}"

Callers

nothing calls this directly

Calls 1

_visit_literal_nodeMethod · 0.95

Tested by

no test coverage detected