From 88ba66c5b0929717c477d20e1df92040584bbf60 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 23 Jul 2026 06:47:58 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.disallow_incomplete_defs Add disallow_incomplete_defs = true to the mypy configuration. This requires all function definitions to have complete parameter and return type annotations, catching partially-annotated function signatures. 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 0cd002f4..c5adcb21 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -16,6 +16,8 @@ warn_return_any = true + disallow_incomplete_defs = true + enable_error_code = [ "explicit-override", "ignore-without-code",