Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
globals.cpython-313.pyc33 linesDownload Raw Back to __pycache__
1�

2�j�����SSKJr SSKrSSKJr \R(aSSKJr \"5r	\RSS
Sjj5r\RSSSjj5rSSSjjrSS	jrSS3jr
SSSjjrg)�)�annotationsN)�local�)�Contextc��g�N���silents �SD:\code\apps\devtools\python\user_packages\Python313\site-packages\click/globals.py�get_current_contextr
s��FI�c��grr	r4s rr
r
s��?Brc��[R"S[RS5$![[54anU(d[
S5UeSnAgSnAff=f)aZReturns the current click context.  This can be used as a way to6access the current context object from anywhere.  This is a more implicit7alternative to the :func:`pass_context` decorator.  This function is8primarily useful for helpers such as :func:`echo` which might be9interested in changing its behavior based on the current context.10 11To push the current context, :meth:`Context.scope` can be used.12 13.. versionadded:: 5.014 15:param silent: if set to `True` the return value is `None` if no context16               is available.  The default behavior is to raise a17               :exc:`RuntimeError`.18r�����z!There is no active click context.N)�t�cast�_local�stack�AttributeError�19IndexError�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�[RRS/5RU5 g)z*Pushes a new context to the current stack.rN)r�__dict__�20setdefault�append)�ctxs r�push_contextr,s!��21�O�O���w��+�2�2�3�7rc�@�[RR5 g)z%Removes the top level from the stack.N)rr�popr	rr�pop_contextr"1s��22�L�L���rc�>�UbU$[SS9nUbUR$g)z�Internal helper to get the default value of the color flag.  If a23value is passed it's returned unchanged, otherwise it's looked up from24the current context.25NTr26)r
�color)r$rs  r�resolve_color_defaultr%6s+��27
����28�T�29*�C�30���y�y��r)F)rzt.Literal[False]�returnr).)r�boolr&zContext | None)rrr&�None)r&r(r)r$�bool | Noner&r))�31__future__r�typingr�	threadingr�
TYPE_CHECKING�corerr�overloadr
rr"r%r	rr�<module>r0s[��"����?�?��	������I��I����B��B��08�32�33
r
codekingpro/portable-devtools · Team Ai