from typing import Dict
from typing import Any
import yaml


def load_config(filename: str) -> Dict[str, Any]:
    """Load the configuration from a yaml file.

    :param filename: The path of the yaml file.
    :type filename: str
    :return: A dictionary of the configuration.
    :rtype: Dict[str, Any]
    """
    with open(filename, 'rt') as file_ptr:
        return yaml.load(file_ptr, Loader=yaml.FullLoader)