type hint for config
This commit is contained in:
parent
5b4cdabbbd
commit
8cf45be0b6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user