Remove PEP-604 methods from Sentinel on Python <3.10#605
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