Django mypy stubs
Project description
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.
Installation
git clone https://github.com/mkurnikov/django-stubs.git
cd django-stubs
pip install -U .
To make mypy aware of the plugin, you need to add
[mypy]
plugins =
mypy_django_plugin.main
in your mypy.ini
file.
Also, it uses value of DJANGO_SETTINGS_MODULE
from the environment, so set it before execution, otherwise some features will not work.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
django_stubs-0.2.0-py3-none-any.whl
(262.0 kB
view hashes)
Close
Hashes for django_stubs-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3c58b7a1ad4e122037799ce901e678dc86d96f139859b028f134f1096b8cb8 |
|
MD5 | f635c0ab09f63334d7849e49653136ea |
|
BLAKE2b-256 | c92f6f5bb4b92482a3031a66090844a0003b44729482ad85afb4c6b433598512 |