Make ty happy
This commit is contained in:
@@ -36,6 +36,10 @@ def _load_toml(path: Path) -> dict:
|
||||
except tomllib.TOMLDecodeError as e:
|
||||
_fatal(f"Invalid TOML configuration: {e}")
|
||||
|
||||
# This will never be reached. It is here
|
||||
# specifically just to please ty
|
||||
return {}
|
||||
|
||||
|
||||
def _read_signing_key_from_path(path_value) -> str | None:
|
||||
p = Path(path_value)
|
||||
@@ -57,7 +61,7 @@ def _validate_cat_path(cat_path: str) -> Path:
|
||||
|
||||
|
||||
def _apply_config(cfg: dict) -> None:
|
||||
global addr, port, server_name, signing_key, cat, support, users_can_register, db
|
||||
global addr, port, server_name, signing_key, cat, support, users_can_register
|
||||
|
||||
if "address" in cfg:
|
||||
addr = str(cfg["address"])
|
||||
|
||||
Reference in New Issue
Block a user