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.0.tar.gz (36.5 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.0-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.10.0.tar.gz
Algorithm Hash digest
SHA256 1f7c008fbfc73ccb78e29f3a3e73e1be7709c75d6744e18a1993aadbb171d9af
MD5 5dd8e3c1067677421136d7776256e571
BLAKE2b-256 fd6e02cff5589cebf8bec6a1acb41612acbb75891f9f6e5c1cb5778851a7fa92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ddedcb73bddabbf93084ff147944eb5b1264531360be7fc15afc1e050a9c59c
MD5 f44c0386c9546a13007784afa9ee5db4
BLAKE2b-256 4ef9b523b4c20aa6d3e81134ec4585dda30ba14b799cf5cc254a4f1d5684279d

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