Skip to content

Commit eaf92c0

Browse files
tsvikasclaude
andauthored
Add missing mypy options: strict_equality_for_none and fixed_format_cache (SchemaStore#5142)
Co-authored-by: Claude <[email protected]>
1 parent d262ed5 commit eaf92c0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/schemas/json/partial-mypy.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@
401401
"default": false,
402402
"type": "boolean"
403403
},
404+
"strict_equality_for_none": {
405+
"description": "Include `None` in strict equality checks. Requires `strict_equality` to be activated.",
406+
"markdownDescription": "Include `None` in strict equality checks. Requires `strict_equality` to be activated.\n\nhttps://mypy.readthedocs.io/en/stable/config_file.html#confval-strict_equality_for_none",
407+
"x-intellij-html-description": "Include <code>None</code> in strict equality checks. Requires <code>strict_equality</code> to be activated.",
408+
"default": false,
409+
"type": "boolean"
410+
},
404411
"strict": {
405412
"description": "Enable all optional error checking flags. You can see the list of flags enabled by strict mode in the full `mypy --help` output. The exact list of flags enabled by `strict` may change over time.",
406413
"x-intellij-html-description": "Enable all optional error checking flags. You can see the list of flags enabled by strict mode in the full <code>mypy --help</code> output. The exact list of flags enabled by <code>strict</code> may change over time.",
@@ -491,6 +498,13 @@
491498
"default": false,
492499
"type": "boolean"
493500
},
501+
"fixed_format_cache": {
502+
"description": "Use a new experimental cache format for faster incremental builds. Makes incremental builds up to twice as fast. This is experimental and currently only supported when using a compiled version of mypy.",
503+
"markdownDescription": "Use a new experimental cache format for faster incremental builds. Makes incremental builds up to twice as fast. This is experimental and currently only supported when using a compiled version of mypy.\n\nhttps://mypy.readthedocs.io/en/stable/config_file.html#confval-fixed_format_cache",
504+
"x-intellij-html-description": "Use a new experimental cache format for faster incremental builds. Makes incremental builds up to twice as fast. This is experimental and currently only supported when using a compiled version of mypy.",
505+
"default": false,
506+
"type": "boolean"
507+
},
494508
"plugins": {
495509
"description": "A comma-separated list of mypy plugins.",
496510
"markdownDescription": "A comma-separated list of mypy plugins. See <i>[Extending mypy using plugins](https://mypy.readthedocs.io/en/stable/extending_mypy.html#extending-mypy-using-plugins)</i>.",
@@ -763,6 +777,9 @@
763777
"strict_equality": {
764778
"$ref": "#/properties/strict_equality"
765779
},
780+
"strict_equality_for_none": {
781+
"$ref": "#/properties/strict_equality_for_none"
782+
},
766783
"strict_bytes": {
767784
"$ref": "#/properties/strict_bytes"
768785
},
@@ -817,6 +834,9 @@
817834
"skip_cache_mtime_checks": {
818835
"$ref": "#/properties/skip_cache_mtime_checks"
819836
},
837+
"fixed_format_cache": {
838+
"$ref": "#/properties/fixed_format_cache"
839+
},
820840
"plugins": {
821841
"$ref": "#/properties/plugins"
822842
},

src/test/pyproject/mypy-01.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ exclude = [
99
'^file1\.py$', # TOML literal string (single-quotes, no escaping necessary)
1010
"^file2\\.py$", # TOML basic string (double-quotes, backslash and other characters need escaping)
1111
]
12+
strict_equality_for_none = true
13+
fixed_format_cache = true
1214

1315
# mypy per-module options:
1416

0 commit comments

Comments
 (0)