def read_yaml(file: str): with open(file, 'rU', encoding="utf-8") as stream: return yaml.load(stream, Loader=Loader)