

def __getitem__(self, value):
    res = self.execute()
    if isinstance(res, slice):
        index = value.stop
    else:
        index = value
    if ((index is not None) and (index >= 0)):
        index += 1
    res.fill_cache(index)
    return res._result_cache[value]

dataset/ETHPy150Open coleifer/peewee/peewee.py SelectQuery.__getitem__/VarMisuse@23/25 `value`->`res`