Fix errors reported by mypy

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-10-13 12:45:51 +02:00
commit bfd0544ff8
13 changed files with 68 additions and 71 deletions

View file

@ -103,7 +103,7 @@ class Config(): # export
self.__conf.dump(DEBUG, "superposed configuration")
def __getitem__(self, key: str) -> Optional[str]:
def __getitem__(self, key: str) -> str:
ret = self.get(key)
if ret is None:
raise KeyError(key)