bpo-46469: Make asyncio generic classes return GenericAlias#30777
bpo-46469: Make asyncio generic classes return GenericAlias#30777asvetlov merged 3 commits intopython:mainfrom
Conversation
Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst
Outdated
Show resolved
Hide resolved
|
These methods have existed since 3.9, but apparently aren't documented. Should the fix be backported? |
sobolevn
left a comment
There was a problem hiding this comment.
You should probably also add these types to
cpython/Lib/test/test_genericalias.py
Line 52 in 82c5322
This should be backported. |
Co-authored-by: Jelle Zijlstra <[email protected]>
There isn't any need to test it more than once and in the asyncio it tests both the c and python implementation so no need. |
|
Thanks @kumaraditya303 for the PR, and @asvetlov for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
|
Sorry, @kumaraditya303 and @asvetlov, I could not cleanly backport this to |
|
GH-30784 is a backport of this pull request to the 3.10 branch. |
…-30777) * bpo-46469: Make asyncio generic classes return GenericAlias * 📜🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit ea5b968) Co-authored-by: Kumar Aditya <[email protected]>
|
Thanks. I'm constantly forgetting to make this change. |
|
GH-30785 is a backport of this pull request to the 3.9 branch. |
…H-30777) (#30784) * bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) * bpo-46469: Make asyncio generic classes return GenericAlias * 📜🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit ea5b968) Co-authored-by: Kumar Aditya <[email protected]> * Fix tests Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Andrew Svetlov <[email protected]>
…thonGH-30777) (pythonGH-30785) Automerge-Triggered-By: GH:asvetlov
https://bugs.python.org/issue46469