Skip to content

Commit f544174

Browse files
authored
Add allow_redefinition_new from mypy 1.16 (SchemaStore#4796)
1 parent dd293cc commit f544174

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/schemas/json/partial-mypy.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,13 @@
326326
"default": false,
327327
"type": "boolean"
328328
},
329+
"allow_redefinition_new": {
330+
"description": "By default, mypy won't allow a variable to be redefined with an unrelated type. This experimental flag enables the redefinition of unannotated variables with an arbitrary type. You will also need to enable `local_partial_types` (https://mypy.readthedocs.io/en/stable/config_file.html#confval-local_partial_types).",
331+
"markdownDescription": "By default, mypy won't allow a variable to be redefined with an unrelated type. This experimental flag enables the redefinition of unannotated variables with an arbitrary type. You will also need to enable [local_partial_types](https://mypy.readthedocs.io/en/stable/config_file.html#confval-local_partial_types).",
332+
"x-intellij-html-description": "By default, mypy won't allow a variable to be redefined with an unrelated type. This experimental flag enables the redefinition of unannotated variables with an arbitrary type. You will also need to enable <a href=\"https://mypy.readthedocs.io/en/stable/config_file.html#confval-local_partial_types\">local_partial_types</a>.",
333+
"default": false,
334+
"type": "boolean"
335+
},
329336
"allow_redefinition": {
330337
"description": "Allows variables to be redefined with an arbitrary type, as long as the redefinition is in the same block and nesting level as the original definition.",
331338
"default": false,
@@ -723,6 +730,9 @@
723730
"allow_untyped_globals": {
724731
"$ref": "#/properties/allow_untyped_globals"
725732
},
733+
"allow_redefinition_new": {
734+
"$ref": "#/properties/allow_redefinition_new"
735+
},
726736
"allow_redefinition": {
727737
"$ref": "#/properties/allow_redefinition"
728738
},

0 commit comments

Comments
 (0)