from typing import Dict
import toml


def _load_config_contents(path: str) -> Dict:
    """Loads the contents of a configuration file"""
    with open(path, 'r') as fin:
        data = toml.load(fin)
    return data