+
    ÆÚj  ã                   óœ   € ^ RI Ht ^ RIHt ^ RIt^ RIt]! RRR7      t ! R R]P                  4      t]! 4       t	 ! R R	]
4      tR
 R ltR# )é    )Ú
ContextVar)ÚOptionalNÚcurrent_async_library_cvar)Údefaultc                   ó   € ] tR t^tRtRtR# )Ú_ThreadLocalN© )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚnameÚ__static_attributes__r	   ó    Ú„/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/sniffio/_impl.pyr   r      s	   † ð „Dr   r   c                   ó   € ] tR t^tRtR# )ÚAsyncLibraryNotFoundErrorr	   N)r
   r   r   r   r   r	   r   r   r   r      s   † Ûr   r   c                ó$   € V ^8„  d   QhR\         /# )é   Úreturn)Ústr)Úformats   "r   Ú__annotate__r      s   € ÷ Fñ Fœsñ Fr   c                 ó¢  € \         P                  p V e   V # \        P                  4       p V e   V # R\        P
                  9   d   ^ RIp VP                  p V! 4       e   R#  R\        P
                  9   d   ^ RIHp V! 4       '       d   R# \        R4      h  \         d    TP                  P                  p Lei ; i  \         d     Lii ; i)aí  Detect which async library is currently running.

The following libraries are currently supported:

================   ===========  ============================
Library             Requires     Magic string
================   ===========  ============================
**Trio**            Trio v0.6+   ``"trio"``
**Curio**           -            ``"curio"``
**asyncio**                      ``"asyncio"``
**Trio-asyncio**    v0.8.2+     ``"trio"`` or ``"asyncio"``,
                                depending on current mode
================   ===========  ============================

Returns:
  A string like ``"trio"``.

Raises:
  AsyncLibraryNotFoundError: if called from synchronous context,
    or if the current async library was not recognized.

Examples:

    .. code-block:: python3

       from sniffio import current_async_library

       async def generic_sleep(seconds):
           library = current_async_library()
           if library == "trio":
               import trio
               await trio.sleep(seconds)
           elif library == "asyncio":
               import asyncio
               await asyncio.sleep(seconds)
           # ... and so on ...
           else:
               raise RuntimeError(f"Unsupported library {library!r}")

NÚasyncioÚcurio)Úcurio_runningz.unknown async library, or not in async context)Úthread_localr   r   ÚgetÚsysÚmodulesr   Úcurrent_taskÚAttributeErrorÚTaskÚRuntimeErrorÚ
curio.metar   r   )Úvaluer   r"   r   s       r   Úcurrent_async_libraryr(      sÈ   € ôR ×Ñ€EØÒØˆä&×*Ñ*Ó,€EØÒØˆð ”C—K‘KÔÛð	5Ø"×/Ñ/ˆLð	Ù‹~Ò)Ù ð *ð ”#—+‘+ÔÝ,Ù�?Š?Ùä
#Ø8óð øô ô 	5Ø"Ÿ<™<×4Ñ4ŠLð	5ûô
 ô 	Ùð	ús$   ÁB Á	C  Â!B=Â<B=Ã CÃC)Úcontextvarsr   Útypingr   r    Ú	threadingr   Úlocalr   r   r%   r   r(   r	   r   r   Ú<module>r-      sL   ðÝ "Ý Û 
Û á'Ø ¨$ôÐ ô
�9—?‘?ô ñ ‹~€ô	 ô 	÷Fr   