from typing import Mapping
from typing import List
from typing import Any


def transpose_dict_of_lists(dict_of_lists: Mapping[str, list], keys: List[str]) \
        -> List[Mapping[str, Any]]:
    """Takes a dict of lists, and turns it into a list of dicts."""

    return [{key: dict_of_lists[key][i] for key in keys}
            for i in range(len(dict_of_lists[keys[0]]))]