from pathlib import Path
from typing import Dict
from typing import Any
import toml


def load_toml(path: Path) -> Dict[str, Any]:
    """Load a TOML file to create a dictionary."""
    return toml.load(path)