-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
annotationlib: namespace can be non-dict #132426
Copy link
Copy link
Closed
Labels
3.14bugs and security fixesbugs and security fixesstdlibStandard 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
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixesstdlibStandard 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
Hello!
I think the following, made so that
get_annotate_functionis usable in metaclasses'__new__, should check forMappingsince__prepare__can provide any mapping (see picture from PEP3115.cpython/Lib/annotationlib.py
Line 630 in a81232c
Linked PRs
get_annotate_functionvs. mapping namespaces #132427