Skip to content

Commit 7aef5ae

Browse files
authored
Add missing properties to mypy schema (#4088)
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: python/mypy#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.
1 parent 50fc3b8 commit 7aef5ae

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/schemas/json/partial-mypy.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,33 @@
574574
"default": false,
575575
"description": "UNDOCUMENTED: show links for error codes."
576576
},
577+
"disable_bytearray_promotion": {
578+
"type": "boolean",
579+
"default": false,
580+
"description": "UNDOCUMENTED. Disables automatic promotion of `bytearray` to `bytes` type. Is set to `true` in strict mode.",
581+
"x-intellij-html-description": "UNDOCUMENTED. Disables automatic promotion of <code>bytearray</code> to <code>bytes</code> type. Is set to <code>true</code> in strict mode."
582+
},
583+
"disable_memoryview_promotion": {
584+
"type": "boolean",
585+
"default": false,
586+
"description": "UNDOCUMENTED. Disables automatic promotion of `memoryview` to `bytes` type. Is set to `true` in strict mode.",
587+
"x-intellij-html-description": "UNDOCUMENTED. Disables automatic promotion of <code>memoryview</code> to <code>bytes</code> type. Is set to <code>true</code> in strict mode."
588+
},
589+
"enable_incomplete_feature": {
590+
"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.",
591+
"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.",
592+
"oneOf": [
593+
{
594+
"type": "string"
595+
},
596+
{
597+
"type": "array",
598+
"items": {
599+
"type": "string"
600+
}
601+
}
602+
]
603+
},
577604
"overrides": {
578605
"type": "array",
579606
"items": {

0 commit comments

Comments
 (0)