mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-17 06:11:35 +01:00
Updated for type hints
This commit is contained in:
parent
48f45e7709
commit
e98f21e1f3
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ class FormConfigs(Configs):
|
|||
self.utils = Utilities()
|
||||
|
||||
self.orig_configs: list = []
|
||||
self.config_file = Path(self.etc_path, f'{self.prog_name}.toml')
|
||||
self.config_file: Path = Path(self.etc_path, f'{self.prog_name}.toml')
|
||||
|
||||
def is_dialog_enabled(self) -> None:
|
||||
""" Checking if the dialog box is enabled by the user. """
|
||||
|
@ -94,7 +94,7 @@ class FormConfigs(Configs):
|
|||
def read_configs(self) -> None:
|
||||
""" Read the original config file. """
|
||||
with open(self.config_file, 'r') as toml_file:
|
||||
self.orig_configs = toml_file.readlines()
|
||||
self.orig_configs: list = toml_file.readlines()
|
||||
|
||||
def write_file(self, tags: list) -> None:
|
||||
""" Write the new values to the config file. """
|
||||
|
@ -116,6 +116,6 @@ class FormConfigs(Configs):
|
|||
'ASK_QUESTION =',
|
||||
'PARALLEL_DOWNLOADS =')
|
||||
):
|
||||
line = line.replace('"', '')
|
||||
line: str = line.replace('"', '')
|
||||
|
||||
patch_toml.write(line)
|
||||
|
|
Loading…
Reference in a new issue