HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberPanel/lib64/python3.10/site-packages/click/__pycache__/globals.cpython-310.pyc
o

��h��@s�ddlmZddlZddlmZejrddlmZe�Z	ej
dddd��Zej
dddd��Zdddd�Zd dd�Zd!dd�Z
d"d#dd�ZdS)$�)�annotationsN)�local�)�ContextF�silent�t.Literal[False]�returnrcC�dS�N��rrr�C/usr/local/CyberPanel/lib/python3.10/site-packages/click/globals.py�get_current_context�r.�bool�Context | NonecCr	r
rrrrr
rrc
CsNz
t�dtjd�WSttfy&}z|std�|�WYd}~dSd}~ww)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�errr
rs

����ctx�NonecCstj�dg��|�dS)z*Pushes a new context to the current stack.rN)r�__dict__�
setdefault�append)rrrr
�push_context,sr cCstj��dS)z%Removes the top level from the stack.N)rr�poprrrr
�pop_context1sr"�color�bool | NonecCs(|dur|Stdd�}|dur|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#rrrr
�resolve_color_default6s
r%)F)rrrr).)rrrr)rrrr)rrr
)r#r$rr$)�
__future__r�typingr�	threadingr�
TYPE_CHECKING�corerr�overloadrr r"r%rrrr
�<module>s