9 lines
132 B
Python
9 lines
132 B
Python
|
|
import pathlib
|
||
|
|
|
||
|
|
import yaml
|
||
|
|
|
||
|
|
|
||
|
|
def read_yaml(path: pathlib.Path) -> dict:
|
||
|
|
with open(path) as f:
|
||
|
|
return yaml.safe_load(f)
|