From f689d083d7ee2d44893b0a9e004b3ea56a460d70 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 22:10:43 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.truthy-bool Add the truthy-bool error code to the mypy configuration. This detects conditions and expressions that are always truthy because the type has no __bool__ or __len__ method. 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 41163950..f464416b 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -6,6 +6,7 @@ "explicit-override", "ignore-without-code", "possibly-undefined", + "truthy-bool", ] [tool.isort]