File size: 261 Bytes
e078b1d
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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)