type hint for config

This commit is contained in:
Oliver Hartmann 2023-01-04 21:45:27 +01:00
parent 5b4cdabbbd
commit 8cf45be0b6

View File

@ -4,7 +4,7 @@ from dict_deep import deep_get
conf = None
def read_config(filename):
def read_config(filename) -> dict:
with open(filename, 'r') as f:
global conf
conf = yaml.safe_load(f)