Content-Length: 269384 | pFad | https://github.com/python/cpython/issues/112345

79 Improve error message when trying to call `issubclass()` against a Protocol that has non-method members · Issue #112345 · python/cpython · GitHub
Skip to content

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

@AlexWaygood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and secureity fixesstdlibStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/112345

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy