from pathlib import Path
from typing import Dict
from typing import Any
import yaml


def yml_load(path: Path) -> Dict[str, Any]:
    """
    Loads a .yml file into a Python dictionary
    """
    with open(path, "rt") as source:
        content = yaml.safe_load(source)
    return content