From 8d7cd0abc391a0b3d5bc3198ef54494163717b68 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Sat, 16 May 2020 14:55:28 -0400 Subject: [PATCH] document twisted support --- setup.py | 2 ++ sniffio/_impl.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 37f1d02..150694c 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ "async", "trio", "asyncio", + "twisted", ], extras_require={":python_version < '3.7'": ["contextvars>=2.1"]}, python_requires=">=3.5", @@ -28,6 +29,7 @@ "License :: OSI Approved :: Apache Software License", "Framework :: Trio", "Framework :: AsyncIO", + "Framework :: Twisted", "Operating System :: POSIX :: Linux", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", diff --git a/sniffio/_impl.py b/sniffio/_impl.py index febed65..dc2216f 100644 --- a/sniffio/_impl.py +++ b/sniffio/_impl.py @@ -23,6 +23,8 @@ def current_async_library(): **asyncio** ``"asyncio"`` **Trio-asyncio** v0.8.2+ ``"trio"`` or ``"asyncio"``, depending on current mode + **Twisted** v?+ ``"twisted"`` or ``"asyncio"``, + depending on current mode ================ =========== ============================ Returns: