VS Code Python 无法识别匹配语句

VS Code Python doesn't recognize match statement

当我在 VS Code 的 Python 中使用 match-case 语句时,它会在“问题”选项卡中显示红色波浪线和错误:

编辑:我收到了答复,将在下面post

我在 GitHub 上收到了一位 vscode-python 开发者的回复:

Unfortunately Jedi (and it's underlying parser, parso) has not added support for the match statement yet. Please consider switching your language server to "Default"/"Pylance" as our Pylance language server already has support.

As soon as Jedi makes a new release with match statement support we will take the update, but otherwise this is out of our hands. Since we have a language server that has support I'm a closing this issue.