from typing import Dict
from typing import Any


def merge_dict(d: Dict[Any, Any], defaults: Dict[Any, Any]) -> Dict[Any, Any]:
    """Merges a dictionary with a set of default values.

    This will combine the entries in two dictionaries, with the first
    argument taking preference.

    Args:
        d: The dictionary of specified values.
        default: The dictionary of default values.

    Returns:
        The merged dictionary.
    """
    return {**defaults, **d}