Skip to content

Commit c663542

Browse files
Update util.py
1 parent e6670cf commit c663542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypyc/irbuild/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def set_mypyc_attr(key: str, value: Any, line: int) -> None:
143143
lines[key] = line
144144
else:
145145
errors.error(f'"{key}" is not a supported "mypyc_attr"', path, line)
146-
errors.note(f"supported keys: {'", "'.join(sorted(MYPYC_ATTRS))}", path, line)
146+
supported_keys = ','.join(f'"{key}"' for key in sorted(MYPYC_ATTRS))
147+
errors.note(f"supported keys: {supported_keys}", path, line)
147148

148149
for dec in stmt.decorators:
149150
if d := get_mypyc_attr_call(dec):

0 commit comments

Comments
 (0)