Add typehints

This commit is contained in:
Joakim Hellsén 2022-12-11 13:01:22 +01:00
commit 0c5e60d7fc
No known key found for this signature in database
GPG key ID: 01FD861E3DAC09AC
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())