Skip to content

Commit e08fa78

Browse files
committed
Merge branch 'dict-literals' of https://github.com/BobTheBuidler/mypy into dict-literals
2 parents f298714 + 7fa3a98 commit e08fa78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/codegen/literals.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def literal_index(self, value: LiteralValue) -> int:
130130
return n + self.dict_literals[key]
131131
assert False, "invalid literal: %r" % value
132132

133-
def make_dict_literal_key(self, value: dict[LiteralValue, LiteralValue]) -> tuple[tuple[LiteralValue, LiteralValue]]:
133+
def make_dict_literal_key(
134+
self, value: dict[LiteralValue, LiteralValue]
135+
) -> tuple[tuple[LiteralValue, LiteralValue]]:
134136
"""Make a unique key for a literal dict."""
135137
return tuple(value.items())
136138

0 commit comments

Comments
 (0)