Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@brianschubert
Copy link
Contributor

🐶
c.f. #656 (comment)

@brianschubert
Copy link
Contributor 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
Contributor 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.

src/typing_extensions.py Outdated Show resolved Hide resolved
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.