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 — annotationlib - evaluating forward references in STRING format can 'leak' internal names · Issue #148680 · python/cpython Closed Closed Copy link Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:If a If it was just the repr I'd probably put this as a feature request but as it makes the from annotationlib import get_annotations, Format class Example: a: ref | str ann = get_annotations(Example, format=Format.FORWARDREF)['a'] print(ann) print(ann.evaluate(format=Format.STRING)) On 3.14 or Main: ForwardRef('ref | __annotationlib_name_1__', is_class=True, owner=<class '__main__.Example'>) ref | __annotationlib_name_1__ Expected: ForwardRef('ref | str', is_class=True, owner=<class '__main__.Example'>) ref | str CPython versions tested on:3.14, CPython main branch Operating systems tested on:No response Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — 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. |