bpo-37806:Fix infinite recursion with typing.get_type_hints.#15493
Closed
hongweipeng wants to merge 2 commits into
Closed
bpo-37806:Fix infinite recursion with typing.get_type_hints.#15493hongweipeng wants to merge 2 commits into
hongweipeng wants to merge 2 commits into
Conversation
gvanrossum
removed their request for review
August 25, 2019 20:36
aeros
approved these changes
Aug 26, 2019
aeros
left a comment
Contributor
There was a problem hiding this comment.
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.
aeros
suggested changes
Aug 26, 2019
aeros
left a comment
Contributor
There was a problem hiding this comment.
A couple of minor suggestions for the Misc/NEWS entry:
| @@ -0,0 +1,2 @@ | |||
| Fix infinite recursion with typing.get_type_hints. | |||
Contributor
There was a problem hiding this comment.
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).
Suggested change
| Fix infinite recursion with typing.get_type_hints. | |
| Fix infinite recursion from :func:`typing.get_type_hints`. Patch by hongweipeng. |
| @@ -0,0 +1,2 @@ | |||
| Fix infinite recursion with typing.get_type_hints. | |||
| Patch by hongweipeng. | |||
Contributor
There was a problem hiding this comment.
See comment above, this line can be condensed into the above line.
Suggested change
| Patch by hongweipeng. |
aeros
approved these changes
Aug 26, 2019
Member
|
IIUC this is superseded by #15559 (which also looks better IMO), so I am closing this one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


https://bugs.python.org/issue37806