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 — Lazy imports and resolving type hints · Issue #156924 · python/cpython Closed Labels 3.15bugs and security fixesbugs and security fixestopic-lazy-importstopic-typingtype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:
Lines 193 to 210 in 112560e
This gives slightly inconsistent results with lazy imports that fail to resolve: # lazy_mod.py Alias = list raise Exception() from annotationlib import Format, get_annotations lazy from lazy_mod import Alias class A: a: Alias class B: a: Alias[int] get_annotations(A, format=Format.FORWARDREF) #> {'a': <lazy_import 'failing_mod.Alias'>} get_annotations(B, format=Format.FORWARDREF) #> {'a': ForwardRef('Alias[int]', is_class=True, owner=<class '__main__.B'>)} I'm wondering if for Has this already been discussed elsewhere?This is a minor feature, which does not need previous discussion elsewhere Links to previous discussion of this feature:No response Linked PRsActivity
MetadataMetadataAssigneesLabels3.15bugs and security fixesbugs and security fixestopic-lazy-importstopic-typingtype-featureA feature request or enhancementA feature request or enhancement 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. |