<commit_before>from typing import Any, Dict, List
import unittest

from mozdef_util.query_models import SearchQuery

import mozdef_geomodel.query as query


def query_interface(results: List[Dict[str, Any]]) -> query.QueryInterface:
    '''Produce a `QueryInterface` that just returns the provided results.
    '''

    def closure(q: SearchQuery, esi: str) -> List[str, Any]:
        return results

    return closure
<commit_msg>Got the type wrong<commit_after>from typing import Any, Dict, List
import unittest

from mozdef_util.query_models import SearchQuery

import mozdef_geomodel.query as query


def query_interface(results: List[Dict[str, Any]]) -> query.QueryInterface:
    '''Produce a `QueryInterface` that just returns the provided results.
    '''

    def closure(q: SearchQuery, esi: str) -> List[Dict[str, Any]]:
        return results


    return closure



{'fraction_non_alphanumeric': 0.09111617312072894, 'fraction_numerical': 0.0, 'mean_word_length': 4.263473053892215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7030804', 'n_tokens_mistral': 267, 'n_tokens_neox': 258, 'n_words': 85}