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

Protocol inheritance for typing_extensions.SupportsX classes #13010

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Nov 13, 2024

I had MR up before that was similar to this one, and it wasn't accepted. I wanted to take another run at it,
because I don't think I justified it properly. The thing that this fixes is sorting out whether these classes
inherit from typing.Protocol or typing_extenstions.Protocol.

At runtime, depending on the version of python,
these inherit from typing_extenstions.Protocol
instead of typing.Protocol.
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood changed the title Protocol inheritence for typing_extensions.SupportsX classes Protocol inheritance for typing_extensions.SupportsX classes Nov 13, 2024
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.

1 participant