We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69dbb47 commit ae93837Copy full SHA for ae93837
mypy/fastparse.py
@@ -1285,9 +1285,11 @@ def visit_Index(self, n: Index) -> Node:
1285
# cast for mypyc's benefit on Python 3.9
1286
return self.visit(cast(Any, n).value)
1287
1288
- def visit_Match(self, n: Any) -> None:
+ def visit_Match(self, n: Any) -> Node:
1289
self.fail("Match statement is not supported",
1290
line=n.lineno, column=n.col_offset, blocker=True)
1291
+ # Just return some valid node
1292
+ return PassStmt()
1293
1294
1295
class TypeConverter:
0 commit comments