-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
bpo-44926: get_type_hints: Add note about type aliases with forward refs
#27859
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
Conversation
Fidget-Spinner
left a comment
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.
Looks good, I just have one comment.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Fidget-Spinner
left a comment
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.
Great. Thanks!
|
Thanks @mhils for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
@gvanrossum: Please replace |
… refs (pythonGH-27859) (cherry picked from commit 16b9be4) Co-authored-by: Maximilian Hils <git@maximilianhils.com>
|
GH-27860 is a backport of this pull request to the 3.10 branch. |
As agreed on in bpo-44926, this PR adds a small note to
typing.get_type_hintsexplaining that it fails on type aliases with forward references imported from other modules.I've tried to keep the text short. The first commit has a slightly longer version if we want more details/explanation here, but I think this should be enough. :)
https://bugs.python.org/issue44926