pyproject.toml: Enable mypy.warn_return_any

Add warn_return_any = true to the mypy configuration. This detects
functions that return Any from contexts where a specific return type
is declared, encouraging more precise type annotations.

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-22 23:03:43 +02:00
commit bbb9a9b17e

View file

@ -14,6 +14,8 @@
disallow_untyped_calls = true disallow_untyped_calls = true
warn_return_any = true
enable_error_code = [ enable_error_code = [
"explicit-override", "explicit-override",
"ignore-without-code", "ignore-without-code",