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 — Untested code in `typing.py` · Issue #105834 · python/cpython Closed Labels testsTests in the Lib/test dirTests in the Lib/test dirtopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportIf you apply this diff to diff --git a/Lib/typing.py b/Lib/typing.py index 1dd9398344..98e19644a2 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1931,6 +1931,7 @@ def _proto_hook(other): if (isinstance(annotations, collections.abc.Mapping) and attr in annotations and issubclass(other, Generic) and getattr(other, '_is_protocol', False)): + 1/0 break The Lines 1929 to 1934 in 3af2dc7
I think we can say for sure that the Lines 1828 to 1831 in 3af2dc7
I believe that this block of code can therefore be safely deleted. Linked PRsActivity
MetadataMetadataAssigneesLabelstestsTests in the Lib/test dirTests in the Lib/test dirtopic-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. |