Skip to main content

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

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.

Project details


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.9.0.tar.gz (36.1 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.9.0-py3-none-any.whl (52.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.9.0.tar.gz
Algorithm Hash digest
SHA256 5fb84f2c5549d9eee56b15de3a61366fd9a349689124de9a335fcbb99ba09cc6
MD5 c344215d38c6b2d97ccf2f5407c95736
BLAKE2b-256 271c704c863cfe9e1f068f068f1fee943349c38a7d599d0acae5093e58add671

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 550523eb5276d546800fd595f9b3af86a209df3ba0e0294d63a8bba380b2ec52
MD5 2cee5c61500401c121e7c5e27fbe801e
BLAKE2b-256 f2fa6e349246ee21ae592d76da45e4a66e93a1463f23a3fe13e1513167a22e29

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 Pingdom Monitoring Sentry Error logging StatusPage Status page