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
AlexWaygood
changed the title
gh-104555: Sidestep the
gh-104555: Runtime-checkable protocols: Don't let previous calls to ABCMeta.__instancecheck__ cache in typing._ProtocolMeta.__instancecheck__isinstance() influence whether issubclass() raises an exception
JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this pull request
…s to `isinstance()` influence whether `issubclass()` raises an exception (python#104559) Co-authored-by: Carl Meyer <carl@oddbird.net>
This was referenced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters