mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed W0201
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
b78e71a67b
commit
8096fd8058
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class FormConfigs(Configs):
|
|||
self.dialogbox = DialogBox()
|
||||
self.errors = Errors()
|
||||
|
||||
self.orig_configs: list = []
|
||||
# self.toml_original: dict = {}
|
||||
self.config_file: Path = Path(self.etc_path, f'{self.prog_name}.toml')
|
||||
|
||||
def is_dialog_enabled(self) -> None:
|
||||
|
@ -68,7 +68,7 @@ class FormConfigs(Configs):
|
|||
def read_configs(self) -> None:
|
||||
"""Read the original config file."""
|
||||
with open(self.config_file, 'r', encoding='utf-8') as file:
|
||||
self.toml_original = tomlkit.parse(file.read())
|
||||
self.toml_original: dict = tomlkit.parse(file.read())
|
||||
|
||||
def write_configs(self, tags: list) -> None:
|
||||
"""Write new configs to the file.
|
||||
|
|
Loading…
Reference in a new issue