+
    Xj                      a  0 t $ ^ RIHt R t^ RIt^ RIHt ^ RIHt ^ RI	H
t
HtHtHtHtHtHt ^ R	IHt ^R
IHt ]
'       d   ^RIHt ]! R4      t]! R4      tR R ltR R ltR R lt]]! RRR7       ! R R4      4       4       tR R lt]! 4       tR]R&    ! R R]P@                  4      t! ! R R]],          4      t" ! R R]],          4      t#R# )!    )annotationsEventLoopTokenRunvarTokenRunVarN)	dataclass)TracebackType)TYPE_CHECKINGAnyGenericLiteralTypeVarfinaloverload)WeakKeyDictionary)get_async_backend)AsyncBackendTDc                   V ^8  d   QhRR/#    returnNone )formats   "j   /Users/wind/Downloads/Coruna-main学习资料A/backend/venv/lib/python3.14/site-packages/anyio/lowlevel.py__annotate__r      s     + +$ +    c                 R   "   \        4       P                  4       G Rj  xL
  R#  L5i)z
Check for cancellation and allow the scheduler to switch to another task.

Equivalent to (but more efficient than)::

    await checkpoint_if_cancelled()
    await cancel_shielded_checkpoint()

.. versionadded:: 3.0

N)r   
checkpointr   r   r   r    r       s      

(
(
***   '%'c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   +   s     	8 	8t 	8r   c                 R   "   \        4       P                  4       G Rj  xL
  R#  L5i)z
Enter a checkpoint if the enclosing cancel scope has been cancelled.

This does not allow the scheduler to switch to a different task.

.. versionadded:: 3.0

N)r   checkpoint_if_cancelledr   r   r   r$   r$   +   s      

5
5
777r!   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   7   s     ; ;$ ;r   c                 R   "   \        4       P                  4       G Rj  xL
  R#  L5i)z
Allow the scheduler to switch to another task but without checking for cancellation.

Equivalent to (but potentially more efficient than)::

    with CancelScope(shield=True):
        await checkpoint()

.. versionadded:: 3.0

N)r   cancel_shielded_checkpointr   r   r   r'   r'   7   s      

8
8
:::r!   TF)frozenreprc                  0    ] tR t^Ft$ RtR]R&   R]R&   RtR# )r   zU
An opaque object that holds a reference to an event loop.

.. versionadded:: 4.11.0
ztype[AsyncBackend]backend_classobjectnative_tokenr   N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__r   r   r   r   r   F   s     &%r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   S   s     4 4~ 4r   c                 L    \        4       p V P                  4       p\        W4      # )z
Return a token object that can be used to call code in the current event loop from
another thread.

:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread

.. versionadded:: 4.11.0

)r   current_tokenr   )r+   	raw_tokens     r   r7   r7   S   s%     &'M++-I-33r   z1WeakKeyDictionary[object, dict[RunVar[Any], Any]]	_run_varsc                  8    ] tR t^ft]P
                  ! 4       tRtR# )_NoValueSetr   N)r.   r/   r0   r1   enumautoNO_VALUE_SETr4   r   r   r   r;   r;   f   s    99;Lr   r;   c                  B    ] tR t^jtRtR
tR R ltR R ltR R ltRt	R	# )r   z
A token that can be used to restore a :class:`RunVar` to its previous value.

Returned by :meth:`RunVar.set`. Can be used as a context manager to automatically
reset the variable on exit, or passed directly to :meth:`RunVar.reset`.
c                    V ^8  d   QhRRRR/# )r   varz	RunVar[T]value%T | Literal[_NoValueSet.NO_VALUE_SET]r   )r   s   "r   r   RunvarToken.__annotate__t   s      I .S r   c                	,    Wn         W n        R V n        R# )FN_var_value	_redeemed)selfrA   rB   s   &&&r   __init__RunvarToken.__init__t   s    	=Br   c                   V ^8  d   QhRR/# )r   r   RunvarToken[T]r   )r   s   "r   r   rD   y   s      > r   c                	    V # Nr   rJ   s   &r   	__enter__RunvarToken.__enter__y   s    r   c               (    V ^8  d   QhRRRRRRRR/# )	r   exc_typeztype[BaseException] | Noneexc_valzBaseException | Noneexc_tbzTracebackType | Noner   r   r   )r   s   "r   r   rD   |   s2      , & %	
 
r   c                	<    V P                   P                  V 4       R # rP   )rG   reset)rJ   rU   rV   rW   s   &&&&r   __exit__RunvarToken.__exit__|   s     			r   )rI   rH   rG   NrF   )
r.   r/   r0   r1   r2   	__slots__rK   rR   rZ   r4   r   r   r   r   r   j   s"     .I
 r   c                      ] tR t^t$ RtRt]P                  tR]R&   ]3R R llt	]
R R l4       t]R R	 l4       t]R
 R l4       t]3R R lltR R ltR R ltR R ltRtR# )r   z
Like a :class:`~contextvars.ContextVar`, except scoped to the running event loop.

Can be used as a context manager, Just like :class:`~contextvars.ContextVar`, that
will reset the variable to its previous value when the context block is exited.
z!Literal[_NoValueSet.NO_VALUE_SET]r>   c                    V ^8  d   QhRRRR/# )r   namestrdefaultrC   r   )r   s   "r   r   RunVar.__annotate__   s         "G r   c                	    Wn         W n        R # rP   _name_default)rJ   r_   ra   s   &&&r   rK   RunVar.__init__   s     
r   c                   V ^8  d   QhRR/# )r   r   zdict[RunVar[T], T]r   )r   s   "r   r   rb      s      1 r   c                	    \        4       P                  p \        V,          #   \         d    / ;p\        T&   Tu # i ; irP   )r7   r-   r9   KeyError)rJ   r-   run_varss   &  r   _current_varsRunVar._current_vars   sB    $33	\** 	133Hy.O	s   # >>c                    V ^8  d   QhRRRR/# )r   ra   r   r   T | Dr   )r   s   "r   r   rb      s    ++1++r   c                	    R # rP   r   rJ   ra   s   &&r   get
RunVar.get   s    (+r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   rb      s    Qr   c                	    R # rP   r   rQ   s   &r   rr   rs      s    r   c                    V ^8  d   QhRRRR/# )r   ra   z%D | Literal[_NoValueSet.NO_VALUE_SET]r   ro   r   )r   s   "r   r   rb      s     
 
<
	
r   c                    V P                   V ,          #   \         dH    T\        P                  Jd   Tu # T P                  \        P                  Jd   T P                  u #  Mi ; i\        RT P                   R24      h)a
  
Return the current value of this run variable.

:param default: a fallback value to return if no value has been set
:return: the current value, the provided default, or the variable's own default
:raises LookupError: if no value is set and no default is available

zRun variable "z!" has no value and no default set)rl   rj   r   r>   rf   LookupErrorre   rq   s   &&r   rr   rs      s{    	%%%d++ 	%f111f&9&99}}$ :	% TZZL(IJ
 	
s    !A'*A'&A'c                    V ^8  d   QhRRRR/# )r   rB   r   r   rN   r   )r   s   "r   r   rb      s       ~ r   c                x    V P                   p\        WP                  V \        P                  4      4      pWV &   V# )z
Set the value of this run variable for the current event loop.

:param value: the new value
:return: a token that can be used to restore the previous value

)rl   r   rr   r   r>   )rJ   rB   current_varstokens   &&  r   set
RunVar.set   s9     ))D"2"249L9L"MN"Tr   c                    V ^8  d   QhRRRR/# )r   r|   rN   r   r   r   )r   s   "r   r   rb      s      > d r   c                2   VP                   V Jd   \        R4      hVP                  '       d   \        R4      hVP                  \        P
                  J d    V P                  V  MVP                  V P                  V &   RVn        R#   \         d     Li ; i)z
Restore this run variable to the value it held before the matching :meth:`set`.

:param token: the token returned by :meth:`set`
:raises ValueError: if the token belongs to a different :class:`RunVar` or the token
    has already been used

z)This token does not belong to this RunVarz This token has already been usedTN)rG   
ValueErrorrI   rH   r;   r>   rl   rj   )rJ   r|   s   &&r   rY   RunVar.reset   s     ::T!HII????@@<<;333&&t, (-||Dt$  s   B BBc                   V ^8  d   QhRR/# )r   r   r`   r   )r   s   "r   r   rb      s     / /# /r   c                	$    R V P                   : R2# )z<RunVar name=>)re   rQ   s   &r   __repr__RunVar.__repr__   s    tzznA..r   )rf   re   Nrd   )r.   r/   r0   r1   r2   r\   r;   r>   r3   rK   propertyrl   r   rr   r}   rY   r   r4   r   r   r   r   r      s}     $I6A6N6NL3N KW    + +  @L
.2/ /r   )r   r   r   r    r$   r'   r7   )$__conditional_annotations__
__future__r   __all__r<   dataclassesr   typesr   typingr	   r
   r   r   r   r   r   weakrefr   _core._eventloopr   abcr   r   r   r    r$   r'   r   r7   r9   r3   Enumr;   r   r   )r   s   @r   <module>r      s    " "  !  Q Q Q % /!CLCL+	8; 
$U#  $ 4  @Q?R	< R$)) '!* 6_/WQZ _/r   