Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-38979: fix ContextVar "__class_getitem__" method #17497
Conversation
@@ -0,0 +1,3 @@ | |||
return class from __class_getitem__ to simplify subclassing. E.g. `clss = | |||
contextvars.ContextVar[str]` returned `None` instead of `<class |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cpython/Lib/test/test_context.py Lines 41 to 42 in 26ab478 You need to remove this test |
@@ -0,0 +1,3 @@ | |||
return class from __class_getitem__ to simplify subclassing. E.g. `clss = |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
asvetlov
Dec 7, 2019
Contributor
I agree with both @isidentical comments. @amiremohamadi please address them.
Otherwise, the PR looks awesome.
@@ -0,0 +1,3 @@ | |||
return class from __class_getitem__ to simplify subclassing. E.g. `clss = |
This comment has been minimized.
This comment has been minimized.
asvetlov
Dec 7, 2019
Contributor
I agree with both @isidentical comments. @amiremohamadi please address them.
Otherwise, the PR looks awesome.
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 7, 2019
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
This comment has been minimized.
This comment has been minimized.
Since It cannot break any code. |
This comment has been minimized.
This comment has been minimized.
@asvetlov, @isidentical thanks for your help! :) |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 7, 2019
Thanks for making the requested changes! @asvetlov: please review the changes made to this pull request. |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 8, 2019
@amiremohamadi: Status check is done, and it's a success |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 8, 2019
Thanks @amiremohamadi for the PR |
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None. https://bugs.python.org/issue38979 Automerge-Triggered-By: @asvetlov (cherry picked from commit 28c9163) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 8, 2019
GH-17505 is a backport of this pull request to the 3.8 branch. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 8, 2019
GH-17506 is a backport of this pull request to the 3.7 branch. |
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None. https://bugs.python.org/issue38979 Automerge-Triggered-By: @asvetlov (cherry picked from commit 28c9163) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None. https://bugs.python.org/issue38979 Automerge-Triggered-By: @asvetlov (cherry picked from commit 28c9163) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 8, 2019
Thanks @amiremohamadi for the PR |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 8, 2019
GH-17507 is a backport of this pull request to the 3.8 branch. |
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None. https://bugs.python.org/issue38979 Automerge-Triggered-By: @asvetlov (cherry picked from commit 28c9163) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None. https://bugs.python.org/issue38979 Automerge-Triggered-By: @asvetlov (cherry picked from commit 28c9163) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
bpo-38979: fix ContextVar "__class_getitem__" method (pythonGH-17497)
amiremohamadi commentedDec 7, 2019
•
edited by miss-islington
now contextvars.ContextVar "class_getitem" method returns ContextVar class, not None.
https://bugs.python.org/issue38979
Automerge-Triggered-By: @asvetlov