#NEWLINE# def query( self , query_context ) : #NEWLINE# #INDENT# filtered_set = [ choice for choice in self . choices if any ( ( ( query_context . query in text ) for text in choice . searchable_text ) ) ] #NEWLINE# return filtered_set [ query_context . offset : ( query_context . offset + query_context . limit ) ]