from typing import Dict
from typing import List


def get_parents(class_name: str, parent_mapping: Dict[str, List[str]]) -> List[str]:
    """
    Recursively resolve all parents (ancestry) of class_name
    :param class_name: class to resolve
    :param parent_mapping: mapping of class_name -> parents
    :return: List[str], list of parent classes
    """
    parents: List[str] = parent_mapping[class_name]

    for parent in parent_mapping[class_name]:
        parents = [*parents, *get_parents(parent, parent_mapping)]

    return parents