Skip to content

Commit 9c389e1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 091c896 commit 9c389e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mypyc/codegen/literals.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ def _encode_collection_values(
170170
# to improve the determinism of the generated C file, making it easier to compare
171171
# differences between compilation units.
172172
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))
173+
items = tuple(
174+
sort_keys_to - values[sort_key] for sort_key in sorted(sort_keys_to_values)
175+
)
174176
else:
175-
items = value
177+
items = value
176178
for item in items:
177179
assert _is_literal_value(item)
178180
index = self.literal_index(item)

0 commit comments

Comments
 (0)