

def exists(self):
    clone = self.paginate(1, 1)
    clone._select = [SQL('1')]
    return bool(self.scalar())

dataset/ETHPy150Open coleifer/peewee/peewee.py SelectQuery.exists/VarMisuse@35/40 `clone`->`self`