PEP-484 stubs for Django
This package contains type stubs and a custom mypy plugin to provide more precise static types and type inference for Django framework. Django uses some Python “magic” that makes having precise types for some code patterns problematic. This is why we need this project. The final goal is to be able to get precise types for most common patterns. Installation To make mypy aware of the plugin, you need to add [mypy] plugins = mypy_django_plugin.main [mypy.plugins.django-stubs] django_settings_module = “myproject.settings” in […]
Read more