Skip to content

Add types to parts of Django #23

Open
@smark-1

Description

@smark-1

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

No one assigned

    Labels

    Needs requirementsThe issue needs further defintion around requirements of the feature..Needs teamThe feature needs a team to be formed to work on it. If you're interested, please comment.

    Type

    No type

    Projects

    Status

    Idea refinement - Team creation - For approval

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions