Tinche / aiofiles

File support for asyncio
Apache License 2.0
2.67k stars 149 forks source link

DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead #84

Closed timkofu closed 3 years ago

timkofu commented 3 years ago

I'm getting the exception below on Python 3.8:

...lib/python3.8/site-packages/aiofiles/os.py:10: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def run(*args, loop=None, executor=None, **kwargs):
In [2]: aiofiles.__version__
Out[2]: '0.5.0'
shan-guo commented 3 years ago

I'm getting the exception below on Python 3.8:

...lib/python3.8/site-packages/aiofiles/os.py:10: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def run(*args, loop=None, executor=None, **kwargs):
In [2]: aiofiles.__version__
Out[2]: '0.5.0'

So did I, Have you solved it now ?

StigKorsnes commented 3 years ago

If you have look at the commit for os.py, you will se those exact changes. V 0.6 just not released.

samuelcolvin commented 3 years ago

v0.6 is released!

This can be closed.