diff --git a/pyproject.toml b/pyproject.toml index cd73b2a..aeda915 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,12 +11,13 @@ description = "Sniff out which async library your code is running under" readme = "README.rst" authors = [{name = "Nathaniel J. Smith", email = "njs@pobox.com"}] license = {text = "MIT OR Apache-2.0"} -keywords = ["async", "trio", "asyncio"] +keywords = ["async", "trio", "asyncio", "twisted"] classifiers = [ "License :: OSI Approved :: MIT License", "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 c1a7bbf..0ba46a9 100644 --- a/sniffio/_impl.py +++ b/sniffio/_impl.py @@ -35,6 +35,8 @@ def current_async_library() -> str: **asyncio** ``"asyncio"`` **Trio-asyncio** v0.8.2+ ``"trio"`` or ``"asyncio"``, depending on current mode + **Twisted** v?+ ``"twisted"`` or ``"asyncio"``, + depending on current mode ================ =========== ============================ Returns: