-
Notifications
You must be signed in to change notification settings - Fork 41
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
DeprecationWarning: "@coroutine" decorator is deprecated #161
Comments
Thanks @RemiCardona! Hmmm, this is really disappointing! Does this mean that I should just avoid using this API for Python 3.8 and above? Or is a new version, with full support for Python 3.8+, planned? |
In my case python 3.11 complains:
|
12 tasks
alyssais
added a commit
to alyssais/nixpkgs
that referenced
this issue
Feb 13, 2023
Not compatible with Python 3.11[1]. Upstream is dead. [1]: Martiusweb/asynctest#161
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Module mock.py, function
proxy
, declared in line 599, uses decorator@asyncio.coroutine
.It seems that the asyncio
@coroutine
decorator is deprecated since Python 3.8.Please use
async def
instead.Source code should be modified to look something like:
The text was updated successfully, but these errors were encountered: