

def clone(self):
    query = type(self)(self.model_class)
    query.database = self.database
    return self._clone_attributes(query)

dataset/ETHPy150Open coleifer/peewee/peewee.py Query.clone/original