Skip to content

Commit 3cea832

Browse files
msullivanJukkaL
authored andcommitted
Remove {*ignores} in fastparse, since mypyc does not support it (#6594)
This fixes the mypyc build.
1 parent d1e597d commit 3cea832

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mypy/fastparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def visit_Module(self, mod: ast3.Module) -> MypyFile:
400400
return MypyFile(body,
401401
self.imports,
402402
False,
403-
{*ignores},
403+
set(ignores),
404404
)
405405

406406
# --- stmt ---

mypy/fastparse2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def visit_Module(self, mod: ast27.Module) -> MypyFile:
308308
return MypyFile(body,
309309
self.imports,
310310
False,
311-
{*ignores},
311+
set(ignores),
312312
)
313313

314314
# --- stmt ---

0 commit comments

Comments
 (0)