Django mypy stubs
pep484 stubs for Django framework
This package contains type stubs and 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 to accompany the stubs with mypy plugins. The final goal is to be able to get precise types for most common patterns.
pip install django-stubs
To make mypy aware of the plugin, you need to add
[mypy] plugins = mypy_django_plugin.main
Also, it uses value of
DJANGO_SETTINGS_MODULE from the environment, so set it before execution, otherwise some features will not work.
To get help
We have Gitter here https://gitter.im/mypy-django/Lobby.
If you think you have more generic typing issue, please refer to https://github.com/python/mypy and their Gitter.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-stubs-0.3.0.tar.gz (132.3 kB)||File type Source||Python version None||Upload date||Hashes View|