import pathlib import yaml def read_yaml(path: pathlib.Path) -> dict: with open(path) as f: return yaml.safe_load(f)