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

Method visit_cast

mypyc/transform/log_trace.py:125–129  ·  view source on GitHub ↗
(self, op: Cast)

Source from the content-addressed store, hash-verified

123 return self.log(op, "unbox", str(op.type))
124
125 def visit_cast(self, op: Cast) -> Value | None:
126 value = self.log(op, "cast", str(op.type))
127 if not op.is_borrowed:
128 self.log_inc_ref(value)
129 return value
130
131 def visit_inc_ref(self, op: IncRef) -> Value:
132 return self.log(op, "inc_ref", str(op.src.type))

Callers

nothing calls this directly

Calls 3

logMethod · 0.95
log_inc_refMethod · 0.95
strClass · 0.85

Tested by

no test coverage detected