Description
Code of Conduct
- I agree to follow Django's Code of Conduct
Feature Description
I would like types and/or type hints to be added or allowed to be added to Django.
Problem
Right now when using Django it is not uncommon to need to look at the docs just to see what a function returns or what the arguments type is. While this has been proposed a few times now, the Python typing ecosystem has improved making this more viable. While there are some areas where this would be difficult and may even hurt the experience due to Django's complexity like the ORM. I feel that there are some parts like the request, response object, path, class-based views, etc that would greatly benefit from this.
Request or proposal
proposal
Additional Details
This has been discussed before, most recently https://forum.djangoproject.com/t/revisiting-types-in-django-dep-14/37832.
I thought I would add it here as well.
This would also help solve many of the issues here https://groups.google.com/g/django-developers/c/at-G0hZrfXE.
Implementation Suggestions
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status