Trying to make mypy understand .objects on abstract django models
Project description
This is an extension on the django-stubs project that makes it possible to represent all concrete descendants of an abstract Django ORM Model in terms of those abstract models.
The intention is to get this code working and tested and documented before getting those changes into the django-stubs project itself.
Built Docs
History
This project comes from working on a large Django project (millions of lines of code) that has varying levels of typing maturity within it. In working towards getting that project onto the latest version of mypy and django-stubs there were 100s of errors that appeared due to mypy correctly complaining about abstract model types not having on them properties that are only on their concrete descendants. This project was created to resolve this issue without simply ignoring the problem.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file extended_mypy_django_plugin-0.8.2.tar.gz.
File metadata
- Download URL: extended_mypy_django_plugin-0.8.2.tar.gz
- Upload date:
- Size: 20.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db56fc6106ccd4b4bb2137c5632d210f5d10d7016bf9733434ecffae9e0fd4a5
|
|
| MD5 |
1a294faca062f5920e0ef80091cbd9a8
|
|
| BLAKE2b-256 |
2abccb11abfb530bf3ff17e3f316aa0809b718d97046747563a0c4103c1edda8
|
File details
Details for the file extended_mypy_django_plugin-0.8.2-py3-none-any.whl.
File metadata
- Download URL: extended_mypy_django_plugin-0.8.2-py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c087dbb785cc09c182ae38b6f9ec8402c216aa8c576d9ed6589b191205de7cb1
|
|
| MD5 |
778a51fccb54ba1226940b961aad15d2
|
|
| BLAKE2b-256 |
eec8b49a1832975575ae20f80036125133d03bccbf7e2017ea1ccff47e02aa29
|