def next(self):
        if self._idx == self._ct:
            inst = self._result_cache[self._idx]
            self._idx += 1
            return inst
        elif self._populated:
            raise StopIteration

        obj = self.iterate()
        self._result_cache.append(obj)
        self._ct += 1
        self._idx += 1
        return obj
dataset/ETHPy150Open coleifer/peewee/peewee.py/QueryResultWrapper.next/operator `<` -> `==`