from __future__ import annotations from pathlib import Path from typing import Any import yaml def load_config(config_path: str | Path = "config.yaml") -> dict[str, Any]: with open(config_path, "r", encoding="utf-8") as f: return yaml.safe_load(f)