]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (#21553)
authorwyfo <joperez@hotmail.fr>
Wed, 22 Jul 2020 19:47:28 +0000 (21:47 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2020 19:47:28 +0000 (12:47 -0700)
commit653f420b53a3aa87316cef59de8d3f5d9e11deb4
tree4ec1efe11e2698f2c56790f013c1cf1ae80c677b
parentbf2f76ec0976c09de79c8827764f30e3b6fba776
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (#21553)

The issue raised by recursive evaluation is infinite recursion with
recursive types. In that case, only the first recursive ForwardRef is
evaluated.
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]