We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091c896 commit 9c389e1Copy full SHA for 9c389e1
mypyc/codegen/literals.py
@@ -170,9 +170,11 @@ def _encode_collection_values(
170
# to improve the determinism of the generated C file, making it easier to compare
171
# differences between compilation units.
172
sort_keys_to_values = {str(v): v for v in value}
173
- items = tuple(sort_keys_to-values[sort_key] for sort_key in sorted(sort_keys_to_values))
+ items = tuple(
174
+ sort_keys_to - values[sort_key] for sort_key in sorted(sort_keys_to_values)
175
+ )
176
else:
- items = value
177
+ items = value
178
for item in items:
179
assert _is_literal_value(item)
180
index = self.literal_index(item)
0 commit comments