From dc14aac068338468ca48a63309195b5cbdc57244 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 21:12:04 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.warn_redundant_casts Add warn_redundant_casts = true to the mypy configuration template. This rule detects casts that mypy proves unnecessary, helping to clean up redundant type casts that clutter the codebase. This is one of the boolean-flag rules being gradually adopted from the stricter mypy profile in /tmp/pyproject.toml. It produces just 1 error during initial rollout. 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 f464416b..635a4041 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -2,6 +2,8 @@ {mypypath} + warn_redundant_casts = true + enable_error_code = [ "explicit-override", "ignore-without-code",