Skip to content

Conversation

@brianschubert
Copy link
Member

🐶
c.f. #656 (comment)

@brianschubert
Copy link
Member Author

Huh, incidentally the typing analog of this sentinel seems to be dead code now: https://github.com/python/cpython/blob/96b7a2eba423b42320f15fd4974740e3e930bb8b/Lib/typing.py#L456-L459

It's last use (and it's global instance) were removed in python/cpython#136332

@brianschubert
Copy link
Member Author

Opened python/cpython#138120

@JelleZijlstra
Copy link
Member

Let's merge this after the non-RC release goes out tomorrow.

@hauntsaninja
Copy link
Collaborator

Hmm, would we revert if PEP 661 was rejected?

@JelleZijlstra
Copy link
Member

If so, we'd likely keep Sentinel around in typing-extensions indefinitely for compatibility, and there's no real compatibility problem with changing this internal sentinel back to an internal class.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@AlexWaygood AlexWaygood merged commit 0a372a0 into python:main Aug 25, 2025
23 checks passed
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.

4 participants