HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/hyperflight/apps/inxpress/.venv/Lib/site-packages/click/__pycache__/globals.cpython-311.pyc
�

��i����ddlmZddlZddlmZejrddlmZe��Z	ej
ddd���Zej
ddd���Zddd�Zdd�Zdd�Z
ddd�ZdS) �)�annotationsN)�local�)�ContextF�silent�t.Literal[False]�returnrc��dS�N��rs �ID:\web\hyperflight\apps\inxpress\.venv\Lib\site-packages\click/globals.py�get_current_contextrs��FI�c�.�bool�Context | Nonec��dSrrr
s rrrs��?B�src��	tjdtjd��S#tt
f$r}|st
d��|�Yd}~nd}~wwxYwdS)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  rrrs���K��v�i���b�!1�2�2�2���J�'�K�K�K��	K��B�C�C��J�	K�	K�	K�	K�	K�����K�����4s�$'�A�A�A�ctx�Nonec�l�tj�dg���|��dS)z*Pushes a new context to the current stack.rN)r�__dict__�
setdefault�append)rs r�push_contextr$,s.��
�O���w��+�+�2�2�3�7�7�7�7�7rc�B�tj���dS)z%Removes the top level from the stack.N)rr�poprrr�pop_contextr'1s��
�L�������r�color�bool | Nonec�@�|�|Std���}|�|jSdS)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
)rr()r(rs  r�resolve_color_defaultr+6s6��

����
�T�
*�
*�
*�C�
���y���4r)F)rrr	r).)rrr	r)rrr	r)r	rr)r(r)r	r))�
__future__r�typingr�	threadingr�
TYPE_CHECKING�corerr�overloadrr$r'r+rrr�<module>r2s���"�"�"�"�"�"������������?��������	�������I�I�I�I���I���B�B�B�B���B������08�8�8�8�
����

�
�
�
�
�
�
r