+
    P\i;  c                  s    ^ RI Ht ^ RIt^ RIHt ^ RIHt ^ RIHt ^RI	H
t
Ht ^RIHt  ! R R	]],          4      t]! 4       t ! R
 R4      t]RR R ll4       tRR R lltR R ltR R ltR# )i    )annotationsN)	Generator)contextmanager)TracebackType)	TaskGroup
TaskStatus)get_async_backendc                  s&    ] tR t^tRR R lltRtR# )_IgnoredTaskStatusNc                    V ^8  d   QhRRRR/# )   valueobjectreturnNone Zformat   "7/usr/lib/python3.14/site-packages/anyio/_core/_tasks.py__annotate__Z_IgnoredTaskStatus.__annotate__   s      V t     c                	s    R # Nr   selfr
      &&r   startedZ_IgnoredTaskStatus.started   s    r   r   r   )__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r   r      s     r   r   c                  s   ] tR t^tRtR]P                  RR/R R lltRR R	 llt]	R
 R l4       t
]
P                  R R l4       t
]	R R l4       t]	R R l4       t]	R R l4       t]P                  R R l4       tR R ltR R ltRtR# )CancelScopeaH  
Wraps a unit of work that can be made separately cancellable.

:param deadline: The time (clock value) when this scope is cancelled automatically
:param shield: ``True`` to shield the cancel scope from external cancellation
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread
deadlineshieldFc               $    V ^8  d   QhRRRRRR/# )r	   r   floatr    boolr   r   r   r   r   r   r   CancelScope.__annotate__   s)     Y YY48Y	Yr   c               	s6    \        4       P                  W!R 7      # ))r    r   )r   create_cancel_scope)Zclsr   r    s   &$$r   __new__ZCancelScope.__new__   s     !"66f6XXr   Nc               r   )r	   reasonz
str | Noner   r   r   r   r   r   r   r$   #   s     " "Z "4 "r   c                    \         h)zf
Cancel this scope immediately.

:param reason: a message describing the reason for the cancellation

ZNotImplementedError)r   r'   r   r   cancelZCancelScope.cancel#   s
     "!r   c                   V ^8  d   QhRR/# r	   r   r"   r   r   r   r   r   r$   -   s     " "% "r   c                r(   )z{
The time (clock value) when this scope is cancelled automatically.

Will be ``float('inf')`` if no timeout has been set.

r)   r      &r   r   CancelScope.deadline,   
     "!r   c               r   )r	   r
   r"   r   r   r   r   r   r   r   r$   7   s     " "e " "r   c                	r(   r   r)   r   r   r   r   r/   6       !!r   c               r+   r	   r   r#   r   r   r   r   r   r$   ;   s     " "t "r   c                r(   )z+``True`` if :meth:`cancel` has been called.r)   r-   r.   r   cancel_calledZCancelScope.cancel_called:   s
     "!r   c               r+   r2   r   r   r   r   r   r$   @   s     
" 
"$ 
"r   c                r(   )aO  
``True`` if this scope suppressed a cancellation exception it itself raised.

This is typically used to check if any work was interrupted, or to see if the
scope was cancelled due to its deadline being reached. The value will, however,
only be ``True`` if the cancellation was triggered by the scope itself (and not
an outer scope).

r)   r-   r.   r   cancelled_caughtZCancelScope.cancelled_caught?   s
     "!r   c               r+   r2   r   r   r   r   r   r$   M   s     " " "r   c                r(   )z
``True`` if this scope is shielded from external cancellation.

While a scope is shielded, it will not receive cancellations from outside.

r)   r-   r.   r   r    CancelScope.shieldL   r0   r   c               r   )r	   r
   r#   r   r   r   r   r   r   r   r$   W   s     " "D "T "r   c                	r(   r   r)   r   r   r   r    r5   V   r1   r   c               r+   )r	   r   r   r   r   r   r   r   r$   Z   s     " "; "r   c                	r(   r   r)   r-   r.   r   	__enter__ZCancelScope.__enter__Z   s    !!r   c               s(    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   r   r   r   r$   ]   s2     " "," &" %	"
 
"r   c                	r(   r   r)   )r   r7   r8   r9   s   &&&&r   __exit__ZCancelScope.__exit__]   s
     "!r   r   r   )r   r   r   r   Z__doc__mathinfr&   r*   Zpropertyr   Zsetterr3   r4   r    r6   r:   r   r   r   r   r   r      s    Y"&((Y;@Y
" " " __" " " " 
" 
" " " ]]" """ "r   r   c               r!   )r	   delayfloat | Noner    r#   r   z"Generator[CancelScope, None, None]r   r   r   r   r   r   g   s$      !%'r   c              #  s^  "   \        4       P                  pV e   V! 4       V ,           M\        P                  p\        4       P	                  W1R7      ;_uu_ 4       pVx  RRR4       XP
                  '       d   V! 4       VP                  8  d   \        hR# R#   + '       g   i     LB; i5i)a  
Create a context manager which raises a :class:`TimeoutError` if does not finish in
time.

:param delay: maximum allowed time (in seconds) before raising the exception, or
    ``None`` to disable the timeout
:param shield: ``True`` to shield the cancel scope from external cancellation
:return: a context manager that yields a cancel scope
:rtype: :class:`~typing.ContextManager`\[:class:`~anyio.CancelScope`\]
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread

Nr   r    )r   current_timer;   r<   r%   r4   r   ZTimeoutError)r=   r    r@   r   Zcancel_scopes   &&   r   
fail_afterrA   f   s     " %&33L+0+<&$((H			0	0 
1 
 
	

 $$$<;P;P)P *Q$
 
s$   AB-B B-: B-B*	%B-c               r!   )r	   r=   r>   r    r#   r   r   r   r   r   r   r   r      s&     U U Ut U Ur   c                s    V e    \        4       P                  4       V ,           M\        P                  p\        4       P	                  W!R7      # )a  
Create a cancel scope with a deadline that expires after the given delay.

:param delay: maximum allowed time (in seconds) before exiting the context block, or
    ``None`` to disable the timeout
:param shield: ``True`` to shield the cancel scope from external cancellation
:return: a cancel scope
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread

r?   )r   r@   r;   r<   r%   )r=   r    r   s   && r   move_on_afterrB      sB     9>8I			)	)	+e	3txx  22H2TTr   c               r+   r,   r   r   r   r   r   r      s     < <E <r   c                 2    \        4       P                  4       # )a  
Return the nearest deadline among all the cancel scopes effective for the current
task.

:return: a clock value from the event loop's internal clock (or ``float('inf')`` if
    there is no deadline in effect, or ``float('-inf')`` if the current scope has
    been cancelled)
:rtype: float
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread

)r   current_effective_deadliner   r   r   rD   rD      s     99;;r   c               r+   )r	   r   r   r   r   r   r   r   r      s     	3 	39 	3r   c                 rC   )z
Create a task group.

:return: a task group
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread

)r   create_task_groupr   r   r   rE   rE      s     0022r   )F)Z
__future__r    r;   Zcollections.abcr   Z
contextlibr   Ztypesr   Z
abc._tasksr   r   Z
_eventloopr   r   r   ZTASK_STATUS_IGNOREDr   rA   rB   rD   rE   r   r   r   <module>rF      sg    "  % %  . )F+ 
 )* O" O"d  6U$< 	3r   