%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/click/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/click/__pycache__/globals.cpython-312.pyc

�

D�d���F�ddlZddlmZejr
ddlZddlmZe�Z	ejddd��Zejddedejdfd	��Zddedejdfd
�Zdd�Zdd�Zdd
ejedejefd�Zy)�N)�local�)�Context�silent�returnrc��y�N��rs �//usr/lib/python3/dist-packages/click/globals.py�get_current_contextr
����c��yr	r
rs rr
r
rrc��	tjdtjd�S#tt
f$r}|st
d�|�Yd}~yd}~wwxYw)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�Ac�b�tjjdg�j|�y)z*Pushes a new context to the current stack.rN)r�__dict__�
setdefault�append)�ctxs r�push_contextr -s!��
�O�O���w��+�2�2�3�7rc�@�tjj�y)z%Removes the top level from the stack.N)rr�popr
rr�pop_contextr#2s��
�L�L���r�colorc�@�|�|Std��}|�|jSy)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
r$)r$rs  r�resolve_color_defaultr&7s+��

����
�T�
*�C�
���y�y��r)F)rzte.Literal[False]rr).)rrrN)rNr	)�typingr�	threadingr�
TYPE_CHECKING�typing_extensions�te�corerr�overloadr
�bool�Optionalr r#r&r
rr�<module>r0s������?�?�"��	���������������q�z�z�)�/D����������I�1F��08�
�

����D�!1�
�Q�Z�Z��=M�
r

Zerion Mini Shell 1.0