From 75c9879f674a03bbae9de229ab3cc29dd5573756 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 22:42:09 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.warn_unreachable Add warn_unreachable = true to the mypy configuration. This detects statements that mypy proves are unreachable, such as code after an unconditional return or assertions that can never be true. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/templates/pyproject.toml b/conf/templates/pyproject.toml index 2a4386b7..0500ebb4 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -10,6 +10,8 @@ warn_unused_ignores = true + warn_unreachable = true + enable_error_code = [ "explicit-override", "ignore-without-code",