-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-126451: Register contextvars.Context to collections.abc.Mapping #126452
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
Conversation
The test failure doesn't reproduce locally for me, and I'm not sure how my MR is related. I'm open to suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Misc/NEWS.d/next/Library/2024-11-05-11-28-45.gh-issue-126451.XJMtqz.rst
Outdated
Show resolved
Hide resolved
…JMtqz.rst Co-authored-by: sobolevn <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with one extra nitpick about adding an issubclass
check to the test.
Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Peter Bierma <[email protected]>
Thanks everyone! |
…ing (pythonGH-126452) (cherry picked from commit 5dc36dc) Co-authored-by: Stephen Morton <[email protected]> Co-authored-by: sobolevn <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
GH-126518 is a backport of this pull request to the 3.13 branch. |
…ing (pythonGH-126452) (cherry picked from commit 5dc36dc) Co-authored-by: Stephen Morton <[email protected]> Co-authored-by: sobolevn <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
GH-126519 is a backport of this pull request to the 3.12 branch. |
Should we really backport this? |
We backported #126419 (see discussion in that PR). But I agree it's borderline; I don't feel strongly! Feel free to close the backports if you'd rather not. |
Let's be consistent with #126419 👍 |
…ping (GH-126452) (#126519) gh-126451: Register contextvars.Context to collections.abc.Mapping (GH-126452) (cherry picked from commit 5dc36dc) Co-authored-by: Stephen Morton <[email protected]> Co-authored-by: sobolevn <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
…ping (GH-126452) (#126518) gh-126451: Register contextvars.Context to collections.abc.Mapping (GH-126452) (cherry picked from commit 5dc36dc) Co-authored-by: Stephen Morton <[email protected]> Co-authored-by: sobolevn <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
…ctions.abc.Mapping (pythonGH-126452) (python#126518)" This reverts commit 59316a6.
…ctions.abc.Mapping (pythonGH-126452) (python#126519)" This reverts commit d71da0f.
…ing (python#126452) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
…ing (python#126452) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
This MR registers
contextvars.Context
tocollections.abc.Mapping
. It's already documented thatContext
implements theMapping
interface.