-
-
Notifications
You must be signed in to change notification settings - Fork 118
Remove PEP-604 methods from Sentinel
on Python <3.10
#605
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
We don't generally try to "backport PEP 604" on Python <3.10; this is more consistent with our features
Could you add a note to the changelog? |
Note that
Probably not worth fixing at this point though. |
It's suspicious that no tests failed, would you mind adding a simple 3.10+ test that |
Yes, the word "generally" in the changelog entry is doing some work here 😄 as you say, though, |
it actually is already tested on Python 3.10+, but the test is already skipped on Python <=3.9! typing_extensions/src/test_typing_extensions.py Lines 9148 to 9156 in 44de568
|
Thanks @AlexWaygood, now that this is version guarded we could in fact return |
@Viicos I don't think that works, does it?
|
Good catch, I always fall into this recursion trap! |
We don't generally try to "backport PEP 604" on Python <3.10; this is more consistent with our features