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

Function is_empty_block

mypyc/transform/ir_transform.py:384–385  ·  view source on GitHub ↗
(block: BasicBlock)

Source from the content-addressed store, hash-verified

382
383
384def is_empty_block(block: BasicBlock) -> bool:
385 return len(block.ops) == 1 and isinstance(block.ops[0], Unreachable)

Callers 1

transform_blocksMethod · 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…