]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137226: Fix behavior of ForwardRef.evaluate with type_params (#137227)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 13 Aug 2025 13:47:47 +0000 (06:47 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Aug 2025 13:47:47 +0000 (06:47 -0700)
commit089a324a4258fd5783b7e65acc29231d1042646e
treefaf1dc0289923d16a06300211c41c0a230eaa1a2
parent70730ad0414e4661d2e94710d865edf1f7f164a1
gh-137226: Fix behavior of ForwardRef.evaluate with type_params (#137227)

The previous behavior was copied from earlier typing code. It works around the way
typing.get_type_hints passes its namespaces, but I don't think the behavior is logical
or correct.
Lib/annotationlib.py
Lib/test/test_annotationlib.py
Lib/typing.py
Misc/NEWS.d/next/Library/2025-07-29-21-18-31.gh-issue-137226.B_4lpu.rst [new file with mode: 0644]