diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-05-04 15:31:11 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-05-04 15:31:11 +0200 |
commit | fadd1eab07c9dfe317dfc31efa8ea254a78c3eeb (patch) | |
tree | 96f816efd151fd2b132add45a000bf0a7259e613 /labbot/config.py | |
parent | 1ec64ccb178a4164ac204925c20c559d96508a9b (diff) | |
download | lab-bot-fadd1eab07c9dfe317dfc31efa8ea254a78c3eeb.tar.gz lab-bot-fadd1eab07c9dfe317dfc31efa8ea254a78c3eeb.zip |
improve typing, disable non-critical logging for aiohttp, […]
- correctly popped values from kwargs to pass over to gidgetlab
- add merge hook registration method to simplify future additions
- add new setups values to config
- add print option to config
Diffstat (limited to 'labbot/config.py')
-rw-r--r-- | labbot/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/labbot/config.py b/labbot/config.py index 10858ea..f372008 100644 --- a/labbot/config.py +++ b/labbot/config.py @@ -1,6 +1,6 @@ import os import json -from typing import List +from typing import List, Dict, Any from appdirs import user_config_dir # type: ignore CONFIG_FILE = "config.json" @@ -35,7 +35,7 @@ def write_instance_config(name: str, data: dict) -> None: if data != read_instance_config(name): raise ValueError("Config could not be saved properly") -def read_instance_config(name: str) -> dict: +def read_instance_config(name: str) -> Dict[str, Any]: conf_path = os.path.join(instance_config_dir(name), CONFIG_FILE) try: |