Skip to content

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

Closed

Description

@AlexWaygood

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

Activity

  1. added
    type-feature
    3.13
    stdlib
    on Nov 23, 2023
  2. added a commit that references this issue on Nov 24, 2023
  3. added a commit that references this issue on Feb 11, 2024
  4. added a commit that references this issue on Sep 2, 2024
  5. sergey-miryanov commented on Feb 25, 2026

    @sergey-miryanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13stdlibtopic-typingtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions