]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42904: Change search order of typing.get_type_hints eval (#25632)
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Mon, 26 Apr 2021 17:31:21 +0000 (01:31 +0800)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 17:31:21 +0000 (10:31 -0700)
commit1b1f9852bda85c01ef124858f293e9c13e04ffce
tree30b50ebb738a3a80ce5fff7f0b259af366774d48
parent94549ee728cd88d1ef053aab50da422f9e99b434
bpo-42904: Change search order of typing.get_type_hints eval (#25632)

While surprising (searching globals before locals in one specific case), this is needed for backwards compatibility.
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2021-04-26-23-39-47.bpo-42904.ejjsyR.rst [new file with mode: 0644]