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

Don't reimplement runtime_checkable on py38+ #194

Merged
merged 10 commits into from
Jun 9, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented May 25, 2023

Re-export it from typing instead.

Prior to #184, typing.runtime_checkable didn't work on typing_extensions.Protocol. Now that typing_extensions.Protocol inherits from typing.Generic on py38+, however, it does! This means that we can just re-export typing.runtime_checkable on py38+, rather than reimplementing it on all versions <3.12.

@JelleZijlstra JelleZijlstra merged commit a2c6c88 into python:main Jun 9, 2023
17 checks passed
@AlexWaygood AlexWaygood deleted the simplify-runtime-checkable branch June 9, 2023 14:40
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.

None yet

2 participants