You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They will be the standard way to type annotate function signatures (including parameterized types like lists, dicts, etc.), and are run-time accessible. Is it worth looking into using that?
I can't remember offhand whether there are existing plans for backporting that feature to Python 2. My default instinct is to avoid Python 3 specific things (even in an optional mode) because they generally don't add enough benefit to be worth the expected support burden (i.e. confused users trying to use those features on Python 2; extra code divergence between the interpreters; etc).
So, I'm neutral on the overall idea but it hinges on that question. Let me know if you look into that.
Activity
bitprophet commentedon May 21, 2015
Thanks for asking!
I can't remember offhand whether there are existing plans for backporting that feature to Python 2. My default instinct is to avoid Python 3 specific things (even in an optional mode) because they generally don't add enough benefit to be worth the expected support burden (i.e. confused users trying to use those features on Python 2; extra code divergence between the interpreters; etc).
So, I'm neutral on the overall idea but it hinges on that question. Let me know if you look into that.
mtvx commentedon May 26, 2015
At least mypy (where PEP-484 originates from) lists python 2.x support for 2015 in their roadmap: http://mypy-lang.org/roadmap.html
bitprophet commentedon Jul 6, 2016
Linking this to #357 which is semi related (it's re: folks using this functionality in Python 3, for its own sake, not re: any internal support).
elgalu commentedon Apr 19, 2022
hi! are there plans for https://github.com/python/mypy support?