

def _clone_attributes(self, query):
    query = super(CompoundSelect, self)._clone_attributes(query)
    query.lhs = self.lhs
    query.operator = self.operator
    query.rhs = self.rhs
    return query

dataset/ETHPy150Open coleifer/peewee/peewee.py CompoundSelect._clone_attributes/original