

def matches(self, node):
    if (not isinstance(node, ast.LogicalOperator)):
        return False
    if self._replacement(node):
        return True
    return False

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