DeprecationWarning in Python 3.8
See original GitHub issue@asyncio.coroutine was deprecated in Python 3.8 with https://github.com/python/cpython/pull/13346. loop argument is also deprecated. I am not sure async def can be used since the project ensures compatiblity with 3.3 and above whereas the syntax was present from 3.5 I guess. 3.4 also reached end of life.
/home/karthi/async_lru/async_lru.py:191: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def wrapped(*fn_args, **fn_kwargs):
/home/karthi/async_lru/tests/test_basic.py:146: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def coro():
/home/karthi/async_lru/tests/test_close.py:26: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.1, loop=loop)
/home/karthi/async_lru/tests/test_close.py:14: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.2, loop=loop)
/home/karthi/async_lru/tests/test_close.py:64: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.1, loop=loop)
/home/karthi/async_lru/tests/test_close.py:54: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.2, loop=loop)
/home/karthi/async_lru/tests/test_close.py:94: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.1, loop=loop)
/home/karthi/async_lru/tests/test_close.py:84: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.2, loop=loop)
/home/karthi/async_lru/tests/test_close.py:122: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.1, loop=loop)
/home/karthi/async_lru/tests/test_close.py:112: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.2, loop=loop)
/home/karthi/async_lru/tests/test_close.py:156: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.1, loop=loop)
/home/karthi/async_lru/tests/test_close.py:146: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
await asyncio.sleep(0.2, loop=loop)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Fix deprecation warning that appear in Python 3.8+ #203
9. The presence of deprecation warnings does not mean that the library doesn't support the current python version. It just indicates that the...
Read more >Warning control — Python 3.11.1 documentation
DeprecationWarning. Base category for warnings about deprecated features when those warnings are intended for other Python developers (ignored by default, ...
Read more >Deprecation warnings with Python 3.8
DeprecationWarning : an integer is required (got type WindowIDRef). Implicit conversion to integers using __int__ is deprecated, and may be ...
Read more >2006215 – Python-productivity shows deprecation warning.
... DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def start(self, host, ...
Read more >Django 1.11.* with Python 3.7.* raises a DeprecationWarning
NOTE: this doesn't actually affect either Python 3.8 or Python 3.9 compatibility as per the docs: Deprecated since version 3.3, will be removed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think dropping python 3.3 and 3.4 is fine
+1 - Seeing the same issue in release async-lru==1.0.2 using Python 3.8.5
/usr/local/lib/python3.8/dist-packages/async_lru.py:96: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead