Skip to content

Commit

Permalink
Linter fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpfleming committed Dec 1, 2024
1 parent e8fc320 commit a6b9e88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jinjanator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .version import __version__, version


__all__ = ("version", "__version__")
__all__ = ("__version__", "version")
4 changes: 2 additions & 2 deletions src/jinjanator/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a6b9e88

Please sign in to comment.