Skip to content

Commit 65176cd

Browse files
Add deprecated notice
1 parent 0f0305c commit 65176cd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,26 @@ async-timeout
1313
asyncio-compatible timeout context manager.
1414

1515

16+
17+
DEPRECATED
18+
----------
19+
20+
This library has effectively been upstreamed into Python 3.11+. Therefore this library
21+
is considered deprecated and no longer supported. We'll keep the project open in the
22+
unlikely case of security issues until Python 3.10 is officially unsupported.
23+
24+
To migrate a project that needs to support multiple Python versions, we suggest
25+
using this code (used in our other projects, such as aiohttp)::
26+
27+
if sys.version_info >= (3, 11):
28+
import asyncio as async_timeout
29+
else:
30+
import async_timeout
31+
32+
Then in your dependencies, use::
33+
34+
async-timeout >= 4; python_version < "3.11"
35+
1636
Usage example
1737
-------------
1838

0 commit comments

Comments
 (0)