From a1d192b048ff8e643034ef2424cb345dfd0ba8ab Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 22:35:16 +0200 Subject: [PATCH] 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 --- conf/templates/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/templates/pyproject.toml b/conf/templates/pyproject.toml index 5c71db50..2a4386b7 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -16,6 +16,7 @@ "possibly-undefined", "truthy-bool", "truthy-iterable", + "exhaustive-match", ] [tool.isort]