1"""Utilities for loading various files.""" 2from typing import Any 3 4import yaml 5 6 7def yaml_from_file(filepath: str) -> Any: 8 """Return a loaded YAML file.""" 9 with open(filepath) as content: 10 return yaml.load(content, Loader=yaml.FullLoader) 11