Ë
     V.jƒ  ã                  óÊ   — d dl mZ d dlZd dlmZ ej                  rddlmZ  e«       Z	ej                  ddd„«       Zej                  ddd„«       Zddd„Zdd	„Zdd
„Zddd„Zy)é    )ÚannotationsN)Úlocalé   )ÚContextc                 ó   — y ©N© ©Úsilents    úOC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\click/globals.pyÚget_current_contextr      s   € ØFIó    c                 ó   — y r   r	   r
   s    r   r   r      s   € Ø?Br   c                ó¦   — 	 t        j                  dt        j                  d   «      S # t        t
        f$ r}| st        d«      |‚Y d}~yd}~ww xY w)a‚  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   — t         j                  j                  dg «      j                  | «       y)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                 ó@   — t         j                  j                  «        y)z%Removes the top level from the stack.N)r   r   Úpopr	   r   r   Úpop_contextr"   1   s   € ä
‡L�L×ÑÕr   c                ó@   — | �| S t        d¬«      }|�|j                  S y)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   