Skip to content

Commit

Permalink
Add missing properties to mypy schema
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jakobsen committed Sep 20, 2024
1 parent 50fc3b8 commit 8197779
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/schemas/json/partial-mypy.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>bytearray</code> to <code>bytes</code> type. Is set to <code>true</code> 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 <code>memoryview</code> to <code>bytes</code> type. Is set to <code>true</code> 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": {
Expand Down

0 comments on commit 8197779

Please sign in to comment.