HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/local/lib/python3.9/site-packages/click/__pycache__/globals.cpython-39.pyc
a

X>h��@s�ddlZddlmZejr.ddlZddlmZe�Z	ej
dddd�d	d
��Zej
deej
dd�dd
��Zdeej
dd�d
d
�Zddd�dd�Zdd�dd�Zdej
eej
ed�dd�ZdS)�N)�local�)�ContextFzte.Literal[False]r)�silent�returncCsdS�N��rrr�7/usr/local/lib/python3.9/site-packages/click/globals.py�get_current_contextsr.cCsdSrrr	rrr
rsc
CsPzt�dtjd�WSttfyJ}z|s6td�|�WYd}~n
d}~00dS)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 )�ctxrcCstj�dg��|�dS)z*Pushes a new context to the current stack.rN)r�__dict__�
setdefault�append)rrrr
�push_context,sr)rcCstj��dS)z%Removes the top level from the stack.N)rr�poprrrr
�pop_context1sr)�colorrcCs(|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)rrrrr
�resolve_color_default6s
r)F).)F)N)�typingr
�	threadingr�
TYPE_CHECKINGZtyping_extensions�te�corerr�overloadr�bool�Optionalrrrrrrr
�<module>s