ó
    Ú°›jƒ  ã                  óè   • S SK Jr  S SKrS SKJr  \R                  (       a  SSKJr  \" 5       r	\R                  SSS jj5       r\R                  SSS jj5       rSSS jjrSS	 jrSS
 jrSSS jjrg)é    )ÚannotationsN)Úlocalé   )ÚContextc                ó   • g ©N© ©Úsilents    ÚJ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/click/globals.pyÚget_current_contextr      s   € ØFIó    c                ó   • g r   r	   r
   s    r   r   r      s   € Ø?Br   c                ó´   •  [         R                  " S[        R                  S   5      $ ! [        [
        4 a  nU (       d  [        S5      Ue SnAgSnAff = f)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.N)ÚtÚcastÚ_localÚstackÚAttributeErrorÚ
IndexErrorÚRuntimeError)r   Úes     r   r   r      sT   € ðKÜ�vŠv�i¤§¡¨bÑ!1Ó2Ð2øÜœJÐ'ó KÞÜÐBÓCÈÐJó ð ûð	Kús   ‚'* ªAºAÁAc                ób   • [         R                  R                  S/ 5      R                  U 5        g)z*Pushes a new context to the current stack.r   N)r   Ú__dict__Ú
setdefaultÚappend)Úctxs    r   Úpush_contextr   ,   s!   € ä
‡O�O×Ñ˜w¨Ó+×2Ñ2°3Õ7r   c                 ó@   • [         R                  R                  5         g)z%Removes the top level from the stack.N)r   r   Úpopr	   r   r   Úpop_contextr"   1   s   € ä
‡L�L×ÑÕr   c                ó>   • U b  U $ [        SS9nUb  UR                  $ g)zžInternal 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   Úcolor)r$   r   s     r   Úresolve_color_defaultr%   6   s+   € ð
 ÑØˆä
 TÑ
*€Cà
�Ø�y‰yÐàr   )F)r   zt.Literal[False]Úreturnr   ).)r   Úboolr&   zContext | None)r   r   r&   ÚNone)r&   r(   r   )r$   úbool | Noner&   r)   )Ú
__future__r   Útypingr   Ú	threadingr   ÚTYPE_CHECKINGÚcorer   r   Úoverloadr   r   r"   r%   r	   r   r   Ú<module>r0      s[   ðÝ "ã Ý à‡?‡?Ýá	‹€ð ‡�Ý Ió Ø Ið ‡�Ý Bó Ø Böô08ô
÷
r   