Skip to content
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

add _contextvars for proper naming #12981

Merged
merged 1 commit into from
Nov 8, 2024
Merged

add _contextvars for proper naming #12981

merged 1 commit into from
Nov 8, 2024

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Nov 7, 2024

On 3.9 and lower, the contextvars types call themselves builtins.* which we can't and won't match. This improves naming fidelity for 3.10 and newer.

>>> import contextvars
>>> contextvars.Context
<class '_contextvars.Context'>
>>> contextvars.ContextVar
<class '_contextvars.ContextVar'>
>>> contextvars.Token
<class '_contextvars.Token'>

No changes, just a move. This is the last of this series of MRs.

On 3.9 and lower, the contextvars types call themselves builtins.*
which we can't and won't match. This improves naming fidelity for
3.10 and newer.
Copy link
Contributor

github-actions bot commented Nov 7, 2024

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit 460c09d into python:main Nov 8, 2024
63 checks passed
@tungol tungol deleted the contextvars branch November 8, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants