From a6b9e889c187cff2468257d0a8b198c9d96457e3 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sun, 1 Dec 2024 06:38:20 -0500 Subject: [PATCH] Linter fixes. --- src/jinjanator/__init__.py | 2 +- src/jinjanator/formats.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jinjanator/__init__.py b/src/jinjanator/__init__.py index ba604e8..1a5f2c7 100644 --- a/src/jinjanator/__init__.py +++ b/src/jinjanator/__init__.py @@ -1,4 +1,4 @@ from .version import __version__, version -__all__ = ("version", "__version__") +__all__ = ("__version__", "version") diff --git a/src/jinjanator/formats.py b/src/jinjanator/formats.py index c1a520b..07261d6 100644 --- a/src/jinjanator/formats.py +++ b/src/jinjanator/formats.py @@ -46,8 +46,8 @@ def parse(self, data_string: str) -> Mapping[str, Any]: class MyConfigParser(configparser.ConfigParser): def as_dict(self) -> Mapping[str, Any]: d = dict(self._sections) # type: ignore[attr-defined] - for k in d: - d[k] = self._defaults | d[k] # type: ignore[attr-defined] + for k, v in d.items(): + d[k] = self._defaults | v # type: ignore[attr-defined] d[k].pop("__name__", None) return d