diff --git a/src/schemas/json/partial-mypy.json b/src/schemas/json/partial-mypy.json index e8872f4944f..dd5c9fbe00f 100644 --- a/src/schemas/json/partial-mypy.json +++ b/src/schemas/json/partial-mypy.json @@ -607,6 +607,11 @@ "default": 0, "type": "integer" }, + "num_workers": { + "description": "Use the specified number of worker processes to type check in parallel. This is an experimental feature added in mypy 2.0, equivalent to the --num-workers (-n) command line flag. A value of 0 disables parallel checking.", + "default": 0, + "type": "integer" + }, "show_error_codes": { "type": "boolean", "default": true, diff --git a/src/test/pyproject/mypy-01.toml b/src/test/pyproject/mypy-01.toml index efcb97fe1fd..6461a34540d 100644 --- a/src/test/pyproject/mypy-01.toml +++ b/src/test/pyproject/mypy-01.toml @@ -5,6 +5,7 @@ python_version = "2.7" warn_return_any = true warn_unused_configs = true +num_workers = 4 exclude = [ '^file1\.py$', # TOML literal string (single-quotes, no escaping necessary) "^file2\\.py$", # TOML basic string (double-quotes, backslash and other characters need escaping)