Message349592
| Author |
Greg Price |
| Recipients |
Greg Price, benjamin.peterson, ezio.melotti, lemburg, miss-islington, vstinner |
| Date |
2019年08月13日.17:46:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1565718407.22.0.150447364918.issue37760@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> BTW: Since when do we use type annotations in Python's stdlib ?
Hmm, interesting question!
At a quick grep, it's in a handful of places in the stdlib: asyncio, functools, importlib. The earliest it appeared was in 3.7.0a4.
It's in more places in the test suite, which I think is a closer parallel to this maintainer script in Tools/.
The typing module itself is in the stdlib, so I don't see any obstacle to using it more widely. I imagine the main reason it doesn't appear more widely already is simply that it's new, and most of the stdlib is quite stable. |
|