Skip to content

Commit 45b1f5c

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a3dbf87 commit 45b1f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx/_internal/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __eq__(self, other):
8686
return self._dict == other._dict
8787

8888
def __hash__(self) -> int:
89-
return hash(tuple(self._dict.items()))
89+
return hash(tuple(sorted(self._dict.items())))
9090

9191
def __repr__(self) -> str:
9292
return f'<ComparableDict {self._dict!r}>'

0 commit comments

Comments
 (0)