gh-104555: Fix isinstance() and issubclass() for runtime-checkable protocols that use PEP 695 by AlexWaygood · Pull Request #104556 · python/cpython
Conversation
|
|
||
| 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
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