From 81977796ad0ac372e0c93baeb39184aaf459d94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Andr=C3=A9=20Jakobsen?= Date: Fri, 20 Sep 2024 13:17:19 +0200 Subject: [PATCH] Add missing properties to mypy schema Add `disable_bytearray_promotion`, `disable_memoryview_promotion` and `enable_incomplete_feature` to the mypy schema. The two first properties are undocumented, but are discussed in this PR: https://github.com/python/mypy/pull/13952 The latter option is described in the mypy documentation: https://mypy.readthedocs.io/en/stable/command_line.html#enabling-incomplete-experimental-features This PR closes #3933. --- src/schemas/json/partial-mypy.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/schemas/json/partial-mypy.json b/src/schemas/json/partial-mypy.json index 379f15f293b..5c911967d35 100644 --- a/src/schemas/json/partial-mypy.json +++ b/src/schemas/json/partial-mypy.json @@ -574,6 +574,33 @@ "default": false, "description": "UNDOCUMENTED: show links for error codes." }, + "disable_bytearray_promotion": { + "type": "boolean", + "default": false, + "description": "UNDOCUMENTED. Disables automatic promotion of `bytearray` to `bytes` type. Is set to `true` in strict mode.", + "x-intellij-html-description": "UNDOCUMENTED. Disables automatic promotion of bytearray to bytes type. Is set to true in strict mode." + }, + "disable_memoryview_promotion": { + "type": "boolean", + "default": false, + "description": "UNDOCUMENTED. Disables automatic promotion of `memoryview` to `bytes` type. Is set to `true` in strict mode.", + "x-intellij-html-description": "UNDOCUMENTED. Disables automatic promotion of memoryview to bytes type. Is set to true in strict mode." + }, + "enable_incomplete_feature": { + "description": "Enable a preview of incomplete features that are not yet enabled by default by the current version of mypy. Note that it is not guaranteed that all features will be ultimately enabled by default.", + "x-intellij-html-description": "Enable a preview of incomplete features that are not yet enabled by default by the current version of mypy. Note that it is not guaranteed that all features will be ultimately enabled by default.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + }, "overrides": { "type": "array", "items": {