Skip to content

Commit

Permalink
Add deprecated notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Sep 3, 2024
1 parent 0f0305c commit 65176cd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ async-timeout
asyncio-compatible timeout context manager.



DEPRECATED
----------

This library has effectively been upstreamed into Python 3.11+. Therefore this library
is considered deprecated and no longer supported. We'll keep the project open in the
unlikely case of security issues until Python 3.10 is officially unsupported.

To migrate a project that needs to support multiple Python versions, we suggest
using this code (used in our other projects, such as aiohttp)::

if sys.version_info >= (3, 11):
import asyncio as async_timeout
else:
import async_timeout

Then in your dependencies, use::

async-timeout >= 4; python_version < "3.11"

Usage example
-------------

Expand Down

0 comments on commit 65176cd

Please sign in to comment.