

def matches(self, node):
    if (not isinstance(node, ast.Branch)):
        return False
    return isinstance(node.expr, ast.Constant)

dataset/ETHPy150Open armon/pypred/pypred/optimizer.py DeadBranchPattern.matches/original