-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-122088: Copy the coroutine status of the underlying callable in @warnings.deprecated
#122086
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
This should also be backported to 3.13, ideally before rc1. |
Misc/NEWS.d/next/Library/2024-07-21-18-03-30.gh-issue-122088.vi2bP-.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Bénédikt Tran <[email protected]>
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.
LGTM. Kinda unfortunate that we need to import inspect
in warnings
in order to do this, but I can't see another way.
I'll leave it a few days before merging in case anybody else has objections -- please ping me if it's been a few days and I've forgotten!
Misc/NEWS.d/next/Library/2024-07-21-18-03-30.gh-issue-122088.vi2bP-.rst
Outdated
Show resolved
Hide resolved
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
I have made the requested changes; please review again |
Thanks for making the requested changes! @AlexWaygood, @kumaraditya303: please review the changes made to this pull request. |
@warnings.deprecated
Thanks @srittau for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
… in `@warnings.deprecated` (pythonGH-122086) (cherry picked from commit 375c9f6) Co-authored-by: Sebastian Rittau <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
GH-122156 is a backport of this pull request to the 3.13 branch. |
…e in `@warnings.deprecated` (GH-122086) (#122156) Co-authored-by: Sebastian Rittau <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
… in `@warnings.deprecated` (python#122086) Co-authored-by: Bénédikt Tran <[email protected]>
… in `@warnings.deprecated` (python#122086) Co-authored-by: Bénédikt Tran <[email protected]>
(This needs #122088 to be moved over to the cpython repository and then a NEWS entry.)