def remove_nones_from_dict(d: dict) -> dict:
    """
    Takes a dictionary and removes ``None`` values from it.

    Args:
        d (dict): a dictionary

    Returns:
        dict: the input dictionary, with all ``None``s removed.

    Examples:
        >>> d = {
            "a" : 1,
            "b": [1, 2, None],
            "c": {"key": "value", "key2": None},
            "d": None
            }
        >>> remove_nones_from_dict(d)
        {"a" : 1, "b": [1, 2, None], "c": {"key": "value", "key2": None}}
    """
    return {k: v for k, v in d.items() if v is not None}