]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132426: Add get_annotate_from_class_namespace replacing get_annotate_function...
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 4 May 2025 14:26:42 +0000 (07:26 -0700)
committerGitHub <noreply@github.com>
Sun, 4 May 2025 14:26:42 +0000 (07:26 -0700)
commit7cb86c5defa17147c67b56c4227e74e4c5968686
tree129c1381785bb94524f5f369bc09299d68a1e1b2
parent5a57248b22ad3b9aafcaaadae2c304a1923daeca
gh-132426: Add get_annotate_from_class_namespace replacing get_annotate_function (#132490)

As noted on the issue, making get_annotate_function() support both types and
mappings is problematic because one object may be both. So let's add a new one
that works with any mapping.

This leaves get_annotate_function() not very useful, so remove it.
Doc/library/annotationlib.rst
Doc/reference/datamodel.rst
Lib/annotationlib.py
Lib/test/test_annotationlib.py
Lib/typing.py
Misc/NEWS.d/next/Library/2025-04-13-21-11-11.gh-issue-132426.SZno1d.rst [new file with mode: 0644]