diff --git a/slpkg/dialog_configs.py b/slpkg/dialog_configs.py index 280ac227..b9385b2c 100644 --- a/slpkg/dialog_configs.py +++ b/slpkg/dialog_configs.py @@ -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.