HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/click/__pycache__/globals.cpython-37.pyc
B

�P�e��@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�>/opt/alt/python37/lib/python3.7/site-packages/click/globals.py�get_current_contextsr	.cCsdS)Nr)rrrrr	sc
CsLyt�dtjd�Sttfk
rF}z|s6td�|�Wdd}~XYnXdS)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�errrr	s)�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)r
r�poprrrr�pop_context2sr)�colorrcCs(|dk	r|Stdd�}|dk	r$|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.
    NT)r)r	r)rrrrr�resolve_color_default7s
r)F).)F)N)�typingr�	threadingr�
TYPE_CHECKING�typing_extensions�te�corerr
�overloadr	�bool�Optionalrrrrrrr�<module>s