[Python-Dev] Is static typing still optional?
Barry Warsaw
barry at python.org
Mon Dec 18 22:01:33 EST 2017
On Dec 18, 2017, at 21:41, Chris Barker <chris.barker at noaa.gov> wrote:
>
> TL;DR:
> My point is that having type annotation syntax required for something in the stdlib is a significant step toward "normalizing" type hinting in Python. Whether that's a good idea or not is a judgement call, but it IS a big step.
This is something we’re discussing for importlib.resources:
https://bugs.python.org/issue32248#msg308495
In the standalone version, we’re using annotations for the Python 3 bits. It would make our lives easier if we kept them for the stdlib version (applying diffs and keeping them in sync would be easier). Brett says in the follow up:
"As for the type hints, I thought it was lifted such that new code could include it but we wouldn't be taking PRs to add them to pre-existing code?”
So, what’s the deal?
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171218/89f1d078/attachment.sig>
More information about the Python-Dev
mailing list