pyproject.toml: Enable mypy.exhaustive-match
Add the exhaustive-match error code to the mypy configuration. This requires all match statements to be exhaustive, handling all possible values of the matched expression. The fix is to add 'case _: pass' to each match statement that is intended to be non-exhaustive, making the non-exhaustiveness explicit. Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL and pi.dev 0.81.1 Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
55b63ded69
commit
a1d192b048
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
"possibly-undefined",
|
||||
"truthy-bool",
|
||||
"truthy-iterable",
|
||||
"exhaustive-match",
|
||||
]
|
||||
|
||||
[tool.isort]
|
||||
|
|
|
|||
Loading…
Reference in a new issue