MCPcopy Create free account
hub / github.com/python/mypy / borrow_prefix

Method borrow_prefix

mypyc/ir/pprint.py:135–138  ·  view source on GitHub ↗
(self, op: Op)

Source from the content-addressed store, hash-verified

133 return self.format("%r = %s%r.%s", op, self.borrow_prefix(op), op.obj, op.attr)
134
135 def borrow_prefix(self, op: Op) -> str:
136 if op.is_borrowed:
137 return "borrow "
138 return ""
139
140 def visit_set_attr(self, op: SetAttr) -> str:
141 if op.is_init:

Callers 4

visit_get_attrMethod · 0.95
visit_tuple_getMethod · 0.95
visit_castMethod · 0.95
visit_load_memMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected