Skip to content

Commit 97377e3

Browse files
Update literals.py
1 parent 34afe24 commit 97377e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/codegen/literals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ def sort_frozenset_recursive(frozen: frozenset[object]) -> list[object]:
150150
for key in sorted(sort_helper):
151151
v = sort_helper[key]
152152
if isinstance(v, frozenset):
153-
v = sort_frozenset_items(v)
153+
v = sort_frozenset_recursive(v)
154154
items.append(v)
155155
return items
156156

157157
return self._encode_collection_values(
158-
{sort_frozenset_items(fr): i for fr, i in self.frozenset_literals.items()}
158+
{sort_frozenset_recursive(fr): i for fr, i in self.frozenset_literals.items()}
159159
)
160160

161161
def _encode_collection_values(

0 commit comments

Comments
 (0)