Skip to main content

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

https://extended-mypy-django-plugin.readthedocs.io

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extended_mypy_django_plugin-0.10.1.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

extended_mypy_django_plugin-0.10.1-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

Details for the file extended_mypy_django_plugin-0.10.1.tar.gz.

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.10.1.tar.gz
Algorithm Hash digest
SHA256 9ca89277fe03d070313ba3c2a979f5ac6c4d56c796cc35471836b004d195d412
MD5 e6862f31062794dc8db6fe97e86a5a2b
BLAKE2b-256 01869688883066fa5576ee2cd989f9cec9e15860732b490add7cbda5f4e35f06

See more details on using hashes here.

File details

Details for the file extended_mypy_django_plugin-0.10.1-py3-none-any.whl.

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73ea41a41b66ae94689e8fd6387c14472d9648a072dfaa39f707c5b7acf1140d
MD5 fd1b2354bd5fff89d9a0bc454a9609f2
BLAKE2b-256 4c138c0299630cbbc077cd9ee2dfa88a22a986155718f29b1d7ae2c39bfc42e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page