+
     h  c                   s    ^ RI t^ RIHt ]P                  '       d   ^ RIt^RIHt ]! 4       t	]P                  RR R ll4       t]P                  RR R ll4       tRR R	 lltR
 R ltR R ltRR R lltR# )i    N)local)Contextc                     V ^8  d   QhRRRR/# )   silentzte.Literal[False]returnr    Zformat   "2/usr/lib/python3.14/site-packages/click/globals.py__annotate__r
      s       3 	     c                     R # Nr   r      &r	   get_current_contextr          r   c                R    V ^8  d   QhR\         R\        P                  R,          /# r   r   r   r   booltOptionalr   r   r	   r
   r
      s#       qzz)/D r   c                 r   r   r   r   r   r	   r   r      r   r   c                r   r   r   r   r   r	   r
   r
      s#       I1F r   c                s     \         P                  ! R\        P                  R,          4      #   \        \
        3 d    pT '       g   \        R4      Th Rp?R# Rp?ii ; i)aZ  Returns the current click context.  This can be used as a way to
access the current context object from anywhere.  This is a more implicit
alternative to the :func:`pass_context` decorator.  This function is
primarily useful for helpers such as :func:`echo` which might be
interested in changing its behavior based on the current context.

To push the current context, :meth:`Context.scope` can be used.

.. versionadded:: 5.0

:param silent: if set to `True` the return value is `None` if no context
               is available.  The default behavior is to raise a
               :exc:`RuntimeError`.
r   z!There is no active click context.Ni)r   Zcast_localstackZAttributeErrorZ
IndexErrorZRuntimeError)r   Ze   & r	   r   r      sT    Kvvib!122J' KBCJ  	Ks   +. AAAc                r   )r   ctxr   r   Nr   r   r   r	   r
   r
   -   s     8 8i 8D 8r   c                sd    \         P                  P                  R. 4      P                  V 4       R# )z*Pushes a new context to the current stack.r   N)r   Z__dict__Z
setdefaultZappend)r   r   r	   push_contextr   -   s!    
OOw+2237r   c                s    V ^8  d   QhRR/# )r   r   Nr   r   r   r	   r
   r
   2   s      T r   c                 sB    \         P                  P                  4        R# )z%Removes the top level from the stack.N)r   r   Zpopr   r   r	   pop_contextr   2   s    
LLr   c                s    V ^8  d   QhR\         P                  \        ,          R\         P                  \        ,          /# )r   colorr   )r   r   r   r   r   r	   r
   r
   7   s,      D!1 QZZ=M r   c                sJ    V e   V # \        RR7      pVe   VP                  # R# )zInternal helper to get the default value of the color flag.  If a
value is passed it's returned unchanged, otherwise it's looked up from
the current context.
NTr   )r   r   )r   r   r   r	   resolve_color_defaultr   7   s+    
 
T
*C
yyr   )F).r   )Ztypingr   Z	threadingr    ZTYPE_CHECKINGZtyping_extensionsZteZcorer   r   Zoverloadr   r   r   r   r   r   r	   <module>r       sj     ???"	    08

 r   