From 4c3a9736dc8c9293267482d4e3ec85cd7c112384 Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Fri, 11 Aug 2023 03:56:47 -0600 Subject: [PATCH] Add type annotations to last few Config functions --- src/waybar_check_gmail/config/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/waybar_check_gmail/config/config.py b/src/waybar_check_gmail/config/config.py index 056af9e..ede2c24 100644 --- a/src/waybar_check_gmail/config/config.py +++ b/src/waybar_check_gmail/config/config.py @@ -75,8 +75,8 @@ def __init__(self, fn: AnyPath): else: self._map[sec][key] = val - def section(self, section): + def section(self, section: str) -> Dict[str, Union[str, bool, None]]: return self._map[section] - def get(self, section, key): + def get(self, section: str, key: str) -> Union[str, bool, None]: return self._map[section][key]