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.8.2.tar.gz (20.5 MB 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.8.2-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.8.2.tar.gz
Algorithm Hash digest
SHA256 db56fc6106ccd4b4bb2137c5632d210f5d10d7016bf9733434ecffae9e0fd4a5
MD5 1a294faca062f5920e0ef80091cbd9a8
BLAKE2b-256 2abccb11abfb530bf3ff17e3f316aa0809b718d97046747563a0c4103c1edda8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c087dbb785cc09c182ae38b6f9ec8402c216aa8c576d9ed6589b191205de7cb1
MD5 778a51fccb54ba1226940b961aad15d2
BLAKE2b-256 eec8b49a1832975575ae20f80036125133d03bccbf7e2017ea1ccff47e02aa29

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