[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>