From 64edcec48cd0f67f5aa9d389bc6c135524c36bbf Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 22:19:12 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.disallow_any_generics Add disallow_any_generics = true to the mypy configuration. This requires all generic types (dict, list, Iterable, Types, etc.) to have explicit type arguments instead of using bare generic aliases. 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 a28490c8..f3b5bd5d 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -6,6 +6,8 @@ strict_equality = true + disallow_any_generics = true + enable_error_code = [ "explicit-override", "ignore-without-code",