Files
aitsc/.venv/Lib/site-packages/click/__pycache__/globals.cpython-312.pyc

34 lines
3.0 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
2025-08-17 19:29:42 +08:00
㺡h<E3BAA1><00><00>F<00>ddlZddlmZejr
2025-02-23 09:07:52 +08:00
ddlZddlmZe<03>Z ejddd<08><05>Z ejdde dejdfd <09><05>Z dde dejdfd
2025-08-17 19:29:42 +08:00
<EFBFBD>Z dd <0B>Zdd <0C>Zdd eje deje fd<0E>Zy)<15>N)<01>local<61>)<01>Context<78>silent<6E>returnrc<00><00>y<00>N<><00>rs <20>7D:\wxxcx\aitsc\.venv\Lib\site-packages\click\globals.py<70>get_current_contextr s<00><00>KN<4B>c<00><00>yr r
2025-02-23 09:07:52 +08:00
r s r r r s<00><00>FIrc<00><><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<00>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<00>@<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>r<00>colorc<00>@<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 r#)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)rzte.Literal[False]rr).)rrrN)rNr )<11>typingr<00> threadingr<00> TYPE_CHECKING<4E>typing_extensions<6E>te<74>corerr<00>overloadr <00>bool<6F>Optionalrr"r%r
rr <00><module>r/s<><00><01><12><1B><04>?<3F>?<3F>"<22><1D> <0E><17><06><03><1A><1A>N<> <0C>N<><03><1A><1A>I<><04>I<>q<EFBFBD>z<EFBFBD>z<EFBFBD>)<29>/D<>I<> <0C>I<><10><04><10><11><1A><1A>I<EFBFBD>1F<31><10>08<>
<17>
<10><11><1A><1A>D<EFBFBD>!1<> <10>Q<EFBFBD>Z<EFBFBD>Z<EFBFBD><04>=M<> r