Fixed W0201

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-06-07 11:38:04 +03:00
parent b78e71a67b
commit 8096fd8058

View file

@ -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.