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

Method visit_bytes_expr

mypy/strconv.py:378–379  ·  view source on GitHub ↗
(self, o: mypy.nodes.BytesExpr)

Source from the content-addressed store, hash-verified

376 return f"StrExpr({self.str_repr(o.value)})"
377
378 def visit_bytes_expr(self, o: mypy.nodes.BytesExpr) -> str:
379 return f"BytesExpr({self.str_repr(o.value)})"
380
381 def str_repr(self, s: str) -> str:
382 s = re.sub(r"\\u[0-9a-fA-F]{4}", lambda m: "\\" + m.group(0), s)

Callers 1

acceptMethod · 0.45

Calls 1

str_reprMethod · 0.95

Tested by

no test coverage detected