◐ Shell
clean mode source ↗

gh-104555: Fix isinstance() and issubclass() for runtime-checkable protocols that use PEP 695 by AlexWaygood · Pull Request #104556 · python/cpython

Conversation

JelleZijlstra


def test_pep695_generic_protocol_callable_members(self):
@runtime_checkable
class Foo[T_co](Protocol):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this is a T_contra :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed my mind, now I hate Hungarian notation

carljm added a commit to carljm/cpython that referenced this pull request

May 17, 2023

This was referenced

May 19, 2023

Labels