mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
2.2 KiB
2.2 KiB
django-stubs
The aim of this project is to bring PEP 484 type hints to Django.
The Plan
- Use retype/MonkeyType/stubgen to auto-generate django-stubs Django 2.1.
- Integrate machinalis/mypy-django stubs into django-stubs.
- Create a mypy plugin to support Django model dynamic behaviour. See django-stubs/#5 for more.
- Create a test-suite to keep synced with upstream Django. See django-stubs/#3 for more.
- Commence refining auto-generated stubs and plugin until it is useful.
- Start conversation with Django core about potential integration.
This plan is not set in stone and can change.
Join Us
Bringing type hints to Django will be a huge achievement but will require a lot of work. It is still unclear as to how much time and effort but one thing is clear: we will need a lot of help. No matter what skill level or amount of free time, if you have some motivation to help, please do so.
Right now, the best way to start helping is:
- Introduce yourself on the Gitter chat room.
- Start picking up one of the issues.
- Review and help triage the project management board.
How was django-stubs initially auto-generated?
The initial work was done by @mkurnikov and will be documented once django-stubs/#2 is done.
