Skip to content

Commit

Permalink
No need for ordered dict (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrblock authored May 15, 2023
1 parent 92e4ecb commit e9543b4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions antsichaut/antsichaut.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""The antsichaut module."""

import re
from collections import OrderedDict
from functools import cached_property
from importlib.metadata import version as _version
from pathlib import Path
Expand All @@ -14,13 +13,13 @@
from single_source import get_version

ChLogType = Optional[
OrderedDict[
dict[
str,
OrderedDict[
dict[
str,
OrderedDict[
dict[
str,
OrderedDict[str, list[str]],
dict[str, list[str]],
],
],
]
Expand Down Expand Up @@ -234,7 +233,7 @@ def _sort_by_semver(data: ChLogType) -> ChLogType:
"""
if not data or "releases" not in data:
return data
data["releases"] = OrderedDict(
data["releases"] = dict(
sorted(
data["releases"].items(),
key=lambda t: [int(v) for v in t[0].split(".")],
Expand Down

0 comments on commit e9543b4

Please sign in to comment.