File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,26 @@ async-timeout
13
13
asyncio-compatible timeout context manager.
14
14
15
15
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
+
16
36
Usage example
17
37
-------------
18
38
You can’t perform that action at this time.
0 commit comments