Add typehints
This commit is contained in:
parent
6a4ae2aba8
commit
0c5e60d7fc
3 changed files with 46 additions and 31 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue