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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-07-23 08:58:10 +02:00
commit 989b800906

View file

@ -18,6 +18,8 @@
disallow_incomplete_defs = true
disallow_untyped_defs = true
enable_error_code = [
"explicit-override",
"ignore-without-code",