GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Cannot call `issubclass()` against `typing.Protocol` on Python 3.12 · Issue #105237 · python/cpython Closed Labels 3.12only security fixesonly security fixes3.13only security fixesonly security fixestopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportOn Python 3.11, you can do this: >>> import typing >>> issubclass(object, typing.Protocol) False But on Python 3.12 (following the backport of c05c31d), this raises: >>> import typing >>> issubclass(object, typing.Protocol) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\alexw\coding\cpython\Lib\typing.py", line 1797, in __subclasscheck__ raise TypeError( TypeError: Instance and class checks can only be used with @runtime_checkable protocols The new behaviour doesn't make sense. That Linked PRsReacted by sunmy2019 Activity
MetadataMetadataAssigneesLabels3.12only security fixesonly security fixes3.13only security fixesonly security fixestopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |