From 7e7341bf1bdefec44239d04fd46f0ae86ab7e1b6 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 21:57:01 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.possibly-undefined Add the possibly-undefined error code to the mypy configuration. This detects variables that may not be defined on all execution paths, catching a class of NameError bugs at type-check time. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/templates/pyproject.toml b/conf/templates/pyproject.toml index daf2d4e4..41163950 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -5,6 +5,7 @@ enable_error_code = [ "explicit-override", "ignore-without-code", + "possibly-undefined", ] [tool.isort]