Files
proxmox/venv/lib/python3.12/site-packages/click/__pycache__/globals.cpython-312.pyc

33 lines
2.9 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<0C>Hi<48><00><01><><00>ddlmZddlZddlmZej rddlmZe<05>Z ejd d d<06><05>Z ejddd<07><05>Z d dd<08>Z dd <09>Z dd
<EFBFBD>Z ddd <0B>Zy)<14>)<01> annotationsN)<01>local<61>)<01>Contextc<01><00>y<00>N<><00><01>silents <20>O/home/intlc/projects/proxmox/venv/lib/python3.12/site-packages/click/globals.py<70>get_current_contextr s<00><00>FI<46>c<01><00>yrr r
s r r r s<00><00>?Brc<01><><00> tjdtjd<00>S#tt
f$r}|s t d<03>|<01>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<00><><EFBFBD><EFBFBD><EFBFBD>z!There is no active click context.N)<07>t<>cast<73>_local<61>stack<63>AttributeError<6F>
IndexError<EFBFBD> RuntimeError)r <00>es r r r sT<00><00>K<01><10>v<EFBFBD>v<EFBFBD>i<EFBFBD><16><1C><1C>b<EFBFBD>!1<>2<>2<><32> <1A>J<EFBFBD> '<27>K<01><15><1E>B<>C<><11> J<><16> <10><> K<01>s<00>&)<00>A<03>A <03> Ac<01>b<00>tjjdg<00>j|<00>y)z*Pushes a new context to the current stack.rN)r<00>__dict__<5F>
setdefault<EFBFBD>append)<01>ctxs r <00> push_contextr,s!<00><00>
<EFBFBD>O<EFBFBD>O<EFBFBD><1E><1E>w<EFBFBD><02>+<2B>2<>2<>3<EFBFBD>7rc<01>@<00>tjj<00>y)z%Removes the top level from the stack.N)rr<00>popr rr <00> pop_contextr"1s<00><00>
<EFBFBD>L<EFBFBD>L<EFBFBD><14><14>rc<01>@<00>|<00>|Std<02><03>}|<01> |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 <00>color)r$rs r <00>resolve_color_defaultr%6s+<00><00>
 <0A><18><14> <0C>
<1D>T<EFBFBD>
*<2A>C<EFBFBD>
<EFBFBD><EFBFBD><12>y<EFBFBD>y<EFBFBD><18> r)F)r zt.Literal[False]<5D>returnr).)r <00>boolr&zContext | None)rrr&<00>None)r&r(r)r$<00> bool | Noner&r))<0F>
__future__r<00>typingr<00> threadingr<00> TYPE_CHECKING<4E>corerr<00>overloadr rr"r%r rr <00><module>r0s[<00><01>"<22><12><1B><04>?<3F>?<3F><1D> <0E><17><06><03><1A><1A>I<> <0C>I<><03><1A><1A>B<> <0C>B<><10>08<>
<17>
r