-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support the deprecated_parameter decorator for asynchronous functions. #6247
Support the deprecated_parameter decorator for asynchronous functions. #6247
Conversation
This feature is necessary because I need to deprecate the parameter |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6247 +/- ##
=======================================
Coverage 97.38% 97.38%
=======================================
Files 1116 1116
Lines 96076 96100 +24
=======================================
+ Hits 93564 93588 +24
Misses 2512 2512
☔ View full report in Codecov by Sentry. |
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.
Let us require the wrapped function to look like a coroutine.
Otherwise LGTM.
quantumlib#6247) * Support the deprecated_parameter decorator for asynchronous functions. * Add assert iscoroutine to async_deprecated_parameter test --------- Co-authored-by: Jose Urruticoechea <urruti@google.com>
No description provided.