Skip to content

Commit ede7bf0

Browse files
Update literals.py
1 parent 4f89fa9 commit ede7bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/codegen/literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def _encode_collection_values(
169169
# even though frozensets are not sorted in python, we need to sort the items here
170170
# to improve the determinism of the generated C file, making it easier to compare
171171
# differences between compilation units.
172-
sort_keys_to_values = {str(v): v for v in value}
172+
sort_keys_to_values = {str(v) + type(v).__name__: v for v in value}
173173
items = tuple(
174174
sort_keys_to_values[sort_key] for sort_key in sorted(sort_keys_to_values)
175175
)

0 commit comments

Comments
 (0)