from typing import Dict


def invert_dict(d: Dict) -> Dict:
    """
    Inverts the key:value relation of a dictionary.

    Parameters
    ----------
    d : dict
        dictionary to be inverted

    Returns
    -------
    dict
        inverted dict

    """
    return {v: k for k, v in d.items()}