]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-141174: Improve `annotationlib.get_annotations()` test coverage (GH-141286...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 10 Nov 2025 15:11:42 +0000 (16:11 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Nov 2025 15:11:42 +0000 (15:11 +0000)
commit92210309094ca2c8617ecc9662671a2c376bae10
tree95985612ca373111d195cf53f1dfe3cc23005001
parent7618754d53d0afb9f8a0a868d1a6fd6a49b70bba
[3.14] gh-141174: Improve `annotationlib.get_annotations()` test coverage (GH-141286) (#141353)

gh-141174: Improve `annotationlib.get_annotations()` test coverage (GH-141286)

* Test `get_annotations(format=Format.VALUE)` for stringized annotations on custom objects

* Test `get_annotations(format=Format.VALUE)` for stringized annotations on wrapped partial functions

* Update test_stringized_annotations_with_star_unpack() to actually test stringized annotations

* Test __annotate__ returning a non-dict

* Test passing globals and locals to stringized `get_annotations()`
(cherry picked from commit 06b62282c79dd69293a3eefb4c55f5acc6312cb2)

Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
Lib/test/test_annotationlib.py