

def get_result_wrapper(self, wrapper_type):
    if (wrapper_type == RESULTS_NAIVE):
        return (_ModelQueryResultWrapper if self.use_speedups else NaiveQueryResultWrapper)
    elif (wrapper_type == RESULTS_MODELS):
        return ModelQueryResultWrapper
    elif (wrapper_type == RESULTS_TUPLES):
        return (_TuplesQueryResultWrapper if self.use_speedups else TuplesQueryResultWrapper)
    elif (wrapper_type == RESULTS_DICTS):
        return (_DictQueryResultWrapper if self.use_speedups else DictQueryResultWrapper)
    elif (wrapper_type == RESULTS_AGGREGATE_MODELS):
        return AggregateQueryResultWrapper
    else:
        return (_ModelQueryResultWrapper if wrapper_type.use_speedups else NaiveQueryResultWrapper)

dataset/ETHPy150Open coleifer/peewee/peewee.py Database.get_result_wrapper/VarMisuse@109/195 `self`->`wrapper_type`