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

Improve error message when trying to call issubclass() against a Protocol that has non-method members #112345

Closed
AlexWaygood opened this issue Nov 23, 2023 · 0 comments · Fixed by #112344
Labels
3.13 bugs and security fixes stdlib Python modules in the Lib dir topic-typing type-feature A feature request or enhancement

Comments

@AlexWaygood
Copy link
Member

AlexWaygood commented Nov 23, 2023

Feature or enhancement

Proposal:

The error message could tell the user what the non-method members in the protocol are.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@AlexWaygood AlexWaygood added type-feature A feature request or enhancement topic-typing 3.13 bugs and security fixes labels Nov 23, 2023
@AlexWaygood AlexWaygood added the stdlib Python modules in the Lib dir label Nov 23, 2023
AlexWaygood added a commit that referenced this issue Nov 24, 2023
…d members (#112344)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
…-method members (python#112344)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes stdlib Python modules in the Lib dir topic-typing type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant