From 989b800906caf493518bce2a4319a58ee1b0dbc3 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 23 Jul 2026 08:58:10 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.disallow_untyped_defs Add disallow_untyped_defs = true to the mypy configuration. This requires all function definitions to have complete type annotations for both parameters and return types. Since disallow_incomplete_defs was already satisfied (all functions have partial annotations), this final rule validates that no function is left without any type hints. 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 c5adcb21..71dc5fa7 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -18,6 +18,8 @@ disallow_incomplete_defs = true + disallow_untyped_defs = true + enable_error_code = [ "explicit-override", "ignore-without-code",