Show type hints
Opened this issue · 1 comments
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.
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.