Skip to content

Commit

Permalink
Add type annotations to last few Config functions
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitronx committed Aug 11, 2023
1 parent d2b579d commit 4c3a973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/waybar_check_gmail/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 4c3a973

Please sign in to comment.