-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport generic NamedTuple and TypedDict support #7
Comments
I'd be interested in working on this if nobody else wants to, but I've got quite a lot on for the next two weeks or so, so I'm happy to let somebody else tackle it if they can do it more promptly! |
As discovered in Python Discord's That said, it appears to still be missing for Python 3.7 and 3.8. This CI run of mine is on Python 3.7 and locally I can reproduce it on my Python 3.8.10 installaton (
|
The current support is accidental, not tested, and doesn't cover all supported Python versions, so I don't think it really makes a difference. |
It gives hints as to what one could do to make this pass on all versions ☝️ |
I love this ! I hope TypedDict will also be include soon. Thanks you @JelleZijlstra @AlexWaygood |
Python 3.11 will support generic NamedTuples (python/cpython#92027) and TypedDicts (python/cpython#27663) at runtime. If there is community interest, we should backport support for these features into typing-extensions. I'm not planning to work on this myself but I'll accept patches.
The text was updated successfully, but these errors were encountered: