Hacker News new | ask | show | jobs
by sco1 872 days ago
For context, if others aren't familiar: type hinting generics were added to Python 3.9 by PEP 585 (also available in Python 3.7+ with the annotations future import). PEP 484 previously added type hints to Python 3.5 as explicit imports from the stdlib's typing module.

https://peps.python.org/pep-0585/

https://peps.python.org/pep-0484/

1 comments

Note that the annotations import from future doesn't help with this one.

https://bugs.python.org/issue45117

Yes, sorry, I forgot about that. It's been a while :)