diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-07-26 15:31:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 15:31:24 (GMT) |
commit | 41d1c04f73185c1238680142aa1a81f54f2bf4a4 (patch) | |
tree | 69dfffc681142b455423329b8bcabfeb1b2580e3 /Misc | |
parent | 8b7544cd024077615c62517f91ee74f50f40701d (diff) | |
download | cpython-41d1c04f73185c1238680142aa1a81f54f2bf4a4.zip cpython-41d1c04f73185c1238680142aa1a81f54f2bf4a4.tar.gz cpython-41d1c04f73185c1238680142aa1a81f54f2bf4a4.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-07-20-19-13-17.bpo-41341.wqrj8C.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-07-20-19-13-17.bpo-41341.wqrj8C.rst b/Misc/NEWS.d/next/Library/2020-07-20-19-13-17.bpo-41341.wqrj8C.rst new file mode 100644 index 0000000..c78b24d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-07-20-19-13-17.bpo-41341.wqrj8C.rst @@ -0,0 +1 @@ +Recursive evaluation of `typing.ForwardRef` in `get_type_hints`.
\ No newline at end of file |