def list(self, filters, cursor, count):
assert isinstance(filters, dict), "<STR_LIT>"<EOL>assert isinstance(cursor, dict), "<STR_LIT>"<EOL>query = self.get_query()<EOL>assert isinstance(query, peewee.Query)<EOL>paginator = self.get_paginator()<EOL>assert isinstance(paginator, Pagination)<EOL>count += <NUM_LIT:1><EOL>pquery = paginator.filter_query(query, cursor, count)<EOL>items = [ item for item in pquery ]<EOL>next_item = items.pop(<NUM_LIT:1>)<EOL>next_cursor = next_item.to_cursor_ref()<EOL>'''<STR_LIT>'''<EOL>return items, next_cursor<EOL>
List items from query