gh-122088: Copy the coroutine status of the underlying callable in @warnings.deprecated#122086
gh-122088: Copy the coroutine status of the underlying callable in @warnings.deprecated#122086AlexWaygood merged 5 commits intopython:mainfrom
@warnings.deprecated#122086Conversation
|
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 <10796600+picnixz@users.noreply.github.com>
AlexWaygood
left a comment
There was a problem hiding this comment.
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 <srittau@rittau.biz> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-122156 is a backport of this pull request to the 3.13 branch. |
… in `@warnings.deprecated` (python#122086) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
… in `@warnings.deprecated` (python#122086) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
(This needs #122088 to be moved over to the cpython repository and then a NEWS entry.)