def deepget(data: dict, keys: list[str]):
    """
    deepget nested keys from a dictionary. Raises a KeyError on the first
    missing sub-keys
    """

    k = keys.pop(0)
    if keys:
        return deepget(data[k], keys)
    else:
        return data[k]