Visual studio code Mypy生成任务在vscode中失败

Visual studio code Mypy生成任务在vscode中失败,visual-studio-code,mypy,Visual Studio Code,Mypy,我在vscode中创建了一个任务,但在运行时它会出错 buildtask.json { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [{ "label": "mypy", "type": "shell",

我在vscode中创建了一个任务,但在运行时它会出错

buildtask.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [{
        "label": "mypy",
        "type": "shell",
        "command": "mypy",
        "args": [
            "($file)"
        ],
        "group": {
            "kind": "build",
            "isDefault": true
        }
    }]
}
我收到的错误是

> Executing task: mypy ($file) <

/bin/bash: -c: line 0: syntax error near unexpected token `$file'
/bin/bash: -c: line 0: `mypy ($file)'
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.
执行任务:mypy($file)< /bin/bash:-c:第0行:意外标记“$file”附近出现语法错误 /bin/bash:-c:第0行:`mypy($file)' 终端进程终止,退出代码为:1 终端将被任务重用,请按任意键将其关闭。
尝试
${file}
获取当前打开的文件详细信息

参考: