
Feb. 2, 2023
5:57 p.m.
[Thomas] Has anyone thought about this? It seems like it would be a very useful feature for typing the standard library. [Joren] What about a `builtins.map` analogue
Yes, we had a `Map` operator in the variadic generics PEP but split it out because the PEP was getting too complex. Here's the draft [1] with some details. With PEP 646 taking a long time to land, we didn't spend more time on this. Given that there have been quite a few questions about this, we could revive this PEP after PyCon. (I won't have the bandwidth to do it before then.) [1]: https://docs.google.com/document/d/1szTVcFyLznoDT7phtT-6Fpvp27XaBw9DmbTLHrB6... -- S Pradeep Kumar