Skip to content

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
@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.

2 participants