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

Function get_real_target

mypyc/analysis/dataflow.py:130–133  ·  view source on GitHub ↗
(label: BasicBlock)

Source from the content-addressed store, hash-verified

128
129
130def get_real_target(label: BasicBlock) -> BasicBlock:
131 if len(label.ops) == 1 and isinstance(label.ops[-1], Goto):
132 label = label.ops[-1].label
133 return label
134
135
136def cleanup_cfg(blocks: list[BasicBlock]) -> None:

Callers 1

cleanup_cfgFunction · 0.85

Calls 2

lenFunction · 0.85
isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…