From bbb9a9b17e9d8c471368e762340fbb3434c2001c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 23:03:43 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.warn_return_any Add warn_return_any = true to the mypy configuration. This detects functions that return Any from contexts where a specific return type is declared, encouraging more precise type annotations. 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 790626e6..0cd002f4 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -14,6 +14,8 @@ disallow_untyped_calls = true + warn_return_any = true + enable_error_code = [ "explicit-override", "ignore-without-code",