@@ -0,0 +1,12 @@
from pathlib import Path
import yaml
from core.schemas import config
def load_config(path: Path) -> config.Config:
with path.open(encoding="utf-8") as f:
content = yaml.safe_load(f)
return config.Config.model_validate(content)
The note is not visible to the blocked user.