You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thank you smark-1 for sharing your idea! We have a lot of them so please be patient. You can see the current queue here.
Community instructions
For commenters, please use the emoji reactions on the issue to express support, and/or concern easily. Please use the comments to ask questions or contribute knowledge about the idea. It is unhelpful to post comments of "I'd love this" or "What's the state of this?"
Reaction Guide
👍 This is something I would use
👎 This is something that would cause problems for me or Django
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
The text was updated successfully, but these errors were encountered: