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 twere 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.1.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.1-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.8.1.tar.gz
Algorithm Hash digest
SHA256 7a8ffb1b4fbdf070bea9995236f4fd079c5cf1040d1be9490519f3f76447b3a1
MD5 d762167614ee01163a3c17459f001803
BLAKE2b-256 3595088f9a1df0ee139b221bb300bf5b085821711bc30224f05257f8168d2add

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extended_mypy_django_plugin-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1cad1c0de246ecb1ce1c475170357618e00c0bab4e640c4de15e16e2299e99a
MD5 09e0a68154e9f080b9bfac7d7c54c346
BLAKE2b-256 575918f64500cde199917af15562fe83aaa887994d8135ddec179e170f9aa4bf

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