Fill remaining missing hints with Any & disallow partial hints (#1206)

* Fill remaining missing hints with Any & disallow partial hints

* ModelFormatDict -> _ModelFormatDict

* Fixes

* Add __init__ return hints

* Add suppression
This commit is contained in:
Marti Raudsepp
2022-10-31 14:33:59 +03:00
committed by GitHub
parent e3c131bc61
commit 8f475fa0a6
104 changed files with 747 additions and 740 deletions
+7
View File
@@ -12,9 +12,16 @@ warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True
disallow_untyped_defs = true
disallow_incomplete_defs = true
plugins =
mypy_django_plugin.main
# Ignore incomplete hints in yaml-stubs
[mypy-yaml.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[mypy.plugins.django-stubs]
django_settings_module = scripts.django_tests_settings