◐ Shell
clean mode source ↗

gh-104555: Runtime-checkable protocols: Don't let previous calls to `isinstance()` influence whether `issubclass()` raises an exception by AlexWaygood · Pull Request #104559 · python/cpython

…ng._ProtocolMeta.__instancecheck__

JelleZijlstra

@AlexWaygood

JelleZijlstra

@AlexWaygood

sunmy2019

carljm

Co-authored-by: Carl Meyer <carl@oddbird.net>

AlexWaygood

@AlexWaygood

@AlexWaygood

AlexWaygood

@AlexWaygood AlexWaygood changed the title gh-104555: Sidestep the ABCMeta.__instancecheck__ cache in typing._ProtocolMeta.__instancecheck__ gh-104555: Runtime-checkable protocols: Don't let previous calls to isinstance() influence whether issubclass() raises an exception

May 17, 2023

@AlexWaygood

@blurb-it

Co-authored-by: Carl Meyer <carl@oddbird.net>

JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this pull request

May 18, 2023
…s to `isinstance()` influence whether `issubclass()` raises an exception (python#104559)

Co-authored-by: Carl Meyer <carl@oddbird.net>

This was referenced

May 19, 2023