PEP 585 Generics
TL;DR
PEP 585 made built-in collections generic, allowing list[int]
instead of List[int]
- eliminating duplicate type hierarchies in the typing module.
Interesting!
Before PEP 585, Python had two separate type systems - one for runtime and one for type hints. Now built-in collections work for both!