import configparser


def get_profile_settings(filename: str, section: str, defaults: dict):
    """Reads a particular section in a configuration file.
    Args:
        filename (str): Path to a configuration file.
        section (str): Section name which should be read.
        defaults (dict): Dictionary with default values.
    Returns:
        dict: Default values merged with the actual values from the section.
    """
    config = configparser.ConfigParser()
    config.read(filename)

    settings = dict(defaults)
    if section in config:
        settings = {**settings, **config[section]}

    return settings