]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141174: Improve `annotationlib.get_annotations()` test coverage (#141286)
authordr-carlos <77367421+dr-carlos@users.noreply.github.com>
Mon, 10 Nov 2025 14:45:22 +0000 (01:15 +1030)
committerGitHub <noreply@github.com>
Mon, 10 Nov 2025 14:45:22 +0000 (14:45 +0000)
commit06b62282c79dd69293a3eefb4c55f5acc6312cb2
tree854ccb1bf16197bfc5d1c3d07660ca06d7e75743
parent12837c63635559873a5abddf511d38456d69617b
gh-141174: Improve `annotationlib.get_annotations()` test coverage (#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()`
Lib/test/test_annotationlib.py