Add typehints

This commit is contained in:
2022-12-11 13:01:22 +01:00
parent 6a4ae2aba8
commit 0c5e60d7fc
3 changed files with 46 additions and 31 deletions

View File

@ -72,7 +72,7 @@ def read_settings_file(custom_name: str = "settings.toml") -> TOMLDocument:
Returns:
dict: The settings file as a dict.
"""
settings_file = os.path.join(data_dir, custom_name)
settings_file: str = os.path.join(data_dir, custom_name)
with open(settings_file, encoding="utf-8") as f:
return parse(f.read())