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:
parent
88ba66c5b0
commit
989b800906
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
disallow_incomplete_defs = true
|
disallow_incomplete_defs = true
|
||||||
|
|
||||||
|
disallow_untyped_defs = true
|
||||||
|
|
||||||
enable_error_code = [
|
enable_error_code = [
|
||||||
"explicit-override",
|
"explicit-override",
|
||||||
"ignore-without-code",
|
"ignore-without-code",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue