bpo-37838: get_type_hints for wrapped functions with forward reference#17126
bpo-37838: get_type_hints for wrapped functions with forward reference#17126ilevkivskyi merged 5 commits into
Conversation
brandtbucher
left a comment
There was a problem hiding this comment.
This looks like a good change to me! Just a few comments below to fix CI and clean things up.
Sorry, something went wrong.
|
Thanks for the PR @benedwards14! This one should also have a NEWS entry. Just something simple, like: :meth:`typing.get_type_hints` properly handles functions decorated with :meth:`functors.wraps`. |
Sorry, something went wrong.
|
Hey @brandtbucher, thanks for the review. Here are the markups. |
Sorry, something went wrong.
brandtbucher
left a comment
There was a problem hiding this comment.
Looks good! Just a couple of remaining style nitpicks:
Sorry, something went wrong.
brandtbucher
left a comment
There was a problem hiding this comment.
Sorry, one last typo I spotted. Then good!
Sorry, something went wrong.
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
Sorry, something went wrong.
ilevkivskyi
left a comment
There was a problem hiding this comment.
Looks good, thanks!
Sorry, something went wrong.
|
(Added backport labels since this is a bugfix.) |
Sorry, something went wrong.
|
Thanks @benedwards14 for the PR, and @ilevkivskyi for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
Sorry, something went wrong.
pythonGH-17126) https://bugs.python.org/issue37838 (cherry picked from commit 0aca3a3) Co-authored-by: benedwards14 <53377856+benedwards14@users.noreply.github.com>
pythonGH-17126) https://bugs.python.org/issue37838 (cherry picked from commit 0aca3a3) Co-authored-by: benedwards14 <53377856+benedwards14@users.noreply.github.com>
GH-17126) https://bugs.python.org/issue37838 (cherry picked from commit 0aca3a3) Co-authored-by: benedwards14 <53377856+benedwards14@users.noreply.github.com>
GH-17126) https://bugs.python.org/issue37838 (cherry picked from commit 0aca3a3) Co-authored-by: benedwards14 <53377856+benedwards14@users.noreply.github.com>
https://bugs.python.org/issue37838