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.1.tar.gz (36.4 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.1-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.9.1.tar.gz
Algorithm Hash digest
SHA256 5264124002de9013d2a519a6efd50e1602a94db1cc350f5496d6d02655adef6c
MD5 57f821f4b35a769d381cd2aecb4c5651
BLAKE2b-256 e3426afe44705c98b8b332670a48bc32609b000defa0998a4aecdb2aebefc6d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 993d38ef266ea92a46dfc4bd68d264600dfd48684f17475f4aebc4795e9e8e11
MD5 07c48755c1df4f19c8a377794d075f78
BLAKE2b-256 5d0497cee92fff6514b37ef70266600b31ea3c4c55c8c1f648ae29d1d34022fc

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