Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show type hints #229

Open
meshy opened this issue Jan 31, 2024 · 1 comment
Open

Show type hints #229

meshy opened this issue Jan 31, 2024 · 1 comment

Comments

@meshy
Copy link
Contributor

meshy commented Jan 31, 2024

It would be nice if the functions showed type hints.

At the moment Django doesn't have these, but it'd be nice to know that we have support for them in future, if they're added.

There's a chance that we might be able to draw them out of django-stubs (or similar), but I'm not sure about that... it'd add another dimension to the data we need to parse, and we'd have to solve the problem of integrating them with the existing code.

I've opened this ticket to track the idea, but I'm not planning on working on it presently.

@vainl
Copy link

vainl commented Apr 1, 2024

Hi, I have seen a Django issues ticket #29299 about type hints that were there six years ago. And there was a DEP 65 which was closed eventually. The Django Technical Board also has a statement on type hints for Django that inline type annotations should not be added to Django in 2020.
So I don't think there would be a consensus in a short time. In my opinion, The 'Django-stubs' would be the approach if we want the type hints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants