from typing import List
from typing import Dict


def distinct_by_key(data: List[Dict], key: str) -> List:
    """ Return distinct records from a list of dictionaries, as determined by the
        provided key. """

    result = {}
    for x in data:
        k = x.get(key)
        if k:
            result[k] = x
    return list(result.values())