]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (GH-21553)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 Jul 2020 15:31:24 +0000 (08:31 -0700)
committerGitHub <noreply@github.com>
Sun, 26 Jul 2020 15:31:24 +0000 (08:31 -0700)
commit41d1c04f73185c1238680142aa1a81f54f2bf4a4
tree69dfffc681142b455423329b8bcabfeb1b2580e3
parent8b7544cd024077615c62517f91ee74f50f40701d
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (GH-21553)

The issue raised by recursive evaluation is infinite recursion with
recursive types. In that case, only the first recursive ForwardRef is
evaluated.
(cherry picked from commit 653f420b53a3aa87316cef59de8d3f5d9e11deb4)

Co-authored-by: wyfo <joperez@hotmail.fr>
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2020-07-20-19-13-17.bpo-41341.wqrj8C.rst [new file with mode: 0644]