#29299: Inline/Out of the box Type hints(PEP 484) and Variable annotations(PEP
526)
-------------------------------------+-------------------------------------
Reporter: Andreas Galazis | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Uncategorized | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Andreas Galazis:
Old description:
> Adhering to [https://www.python.org/dev/peps/pep-0484/ Type hints(PEP
> 484)] / [https://www.python.org/dev/peps/pep-0526/ type annotations]
> could contribute to being more explicit / performing code analysis and
> checks on Django projects. Intellisense based on type annotations can
> also contribute to faster and less error-prone coding experience.
>
> Typesheds will be a pain to maintain across versions. Based on my
> experience with typescript typings, the most immaculate situation is
> shipping typings within the project, even though shipping external
> typings is mature in that case. Nevertheless, inline typings can help
> Django project development as well.
>
> Adding to the docs any future plans regarding this, would be helpful for
> prospective developers.
New description:
Adhering to [https://www.python.org/dev/peps/pep-0484/ Type hints(PEP
484)] / [https://www.python.org/dev/peps/pep-0526/ type annotations] could
contribute to being more explicit / performing code analysis and checks on
Django projects. Intellisense based on type annotations can also
contribute to faster and less error-prone coding experience.
Typesheds will be a pain to maintain across versions. Based on my
experience with typescript typings, the most immaculate situation is
shipping typings within the project, even though shipping external typings
is mature in that case. Nevertheless, inline typings can help Django
project development as well.
Adding to the docs any future plans regarding this would be helpful to
prospective developers.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29299#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.81132d9ed477b804840f9da057329f79%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.