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

Function maybe_append_inc_ref

mypyc/transform/refcount.py:105–107  ·  view source on GitHub ↗
(ops: list[Op], dest: Value)

Source from the content-addressed store, hash-verified

103
104
105def maybe_append_inc_ref(ops: list[Op], dest: Value) -> None:
106 if dest.type.is_refcounted:
107 ops.append(IncRef(dest))
108
109
110def transform_block(

Callers 1

transform_blockFunction · 0.85

Calls 2

IncRefClass · 0.90
appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…