-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-37806:Fix infinite recursion with typing.get_type_hints. #15493
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @hongweipeng.
I was able to confirm the bug on the latest commit to master and verify that the PR branch fixes it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minor suggestions for the Misc/NEWS entry:
@@ -0,0 +1,2 @@ | |||
Fix infinite recursion with typing.get_type_hints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This news entry can be condensed onto one line, the max character width for reST is 80.
Also, I would recommend adding a Sphinx role to link to the documentation for typing.get_type_hints. This can still fit on one line (exactly 80 chars in total).
Fix infinite recursion with typing.get_type_hints. | |
Fix infinite recursion from :func:`typing.get_type_hints`. Patch by hongweipeng. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok,thanks.
@@ -0,0 +1,2 @@ | |||
Fix infinite recursion with typing.get_type_hints. | |||
Patch by hongweipeng. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above, this line can be condensed into the above line.
Patch by hongweipeng. |
IIUC this is superseded by #15559 (which also looks better IMO), so I am closing this one. |
https://bugs.python.org/issue37806