Files
loustique-home/venv/lib/python3.11/site-packages/click/__pycache__/globals.cpython-311.pyc

34 lines
3.2 KiB
Plaintext
Raw Normal View History

2026-03-21 10:53:02 +01:00
<EFBFBD>
<00><><EFBFBD>i<EFBFBD><00><01><><00>ddlmZddlZddlmZejrddlmZe<05><00>Z ej
ddd <0B><05><00>Z ej
ddd<0F><05><00>Z ddd<10>Z dd<13>Z dd<14>Z ddd<17>ZdS) <20>)<01> annotationsN)<01>local<61>)<01>ContextF<74>silent<6E>t.Literal[False]<5D>returnrc<01><00>dS<00>N<><00>rs <20>Y/home/maxime/Documents/loustiques-home/venv/lib/python3.11/site-packages/click/globals.py<70>get_current_contextr s<00><00>FI<46>c<EFBFBD>.<2E>bool<6F>Context | Nonec<01><00>dSr r r s rrrs<00><00>?B<>src<01><><00> tjdtjd<00><00>S#tt
f$r}|st d<03><00>|<01>Yd}~nd}~wwxYwdS)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 rrrs<><00><00>K<01><10>v<EFBFBD>i<EFBFBD><16><1C>b<EFBFBD>!1<>2<>2<>2<><32> <1A>J<EFBFBD> '<27>K<01>K<01>K<01><15> K<01><1E>B<>C<>C<><11> J<> K<01> K<01> K<01> K<01> K<01><><EFBFBD><EFBFBD><EFBFBD>K<01><><EFBFBD><EFBFBD> <10>4s<00>$'<00>A<03>A<03>A<03>ctx<74>Nonec<01>l<00>tj<00>dg<00><00><00>|<00><00>dS)z*Pushes a new context to the current stack.rN)r<00>__dict__<5F>
setdefault<EFBFBD>append)rs r<00> push_contextr$,s.<00><00>
<EFBFBD>O<EFBFBD><1E><1E>w<EFBFBD><02>+<2B>+<2B>2<>2<>3<EFBFBD>7<>7<>7<>7<>7rc<01>B<00>tj<00><00><00>dS)z%Removes the top level from the stack.N)rr<00>popr rr<00> pop_contextr'1s<00><00>
<EFBFBD>L<EFBFBD><14><14><16><16><16><16>r<00>color<6F> bool | Nonec<01>@<00>|<00>|Std<02><03><00>}|<01>|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.
NTr )rr()r(rs r<00>resolve_color_defaultr+6s1<00><00>
 <0A><18><14> <0C>
<1D>T<EFBFBD>
*<2A>
*<2A>
*<2A>C<EFBFBD>
<EFBFBD><EFBFBD><12>y<EFBFBD><18> <0F>4r)F)rrr r).)rrr r)rrr r)r rr )r(r)r r))<0F>
__future__r<00>typingr<00> threadingr<00> TYPE_CHECKING<4E>corerr<00>overloadrr$r'r+r rr<00><module>r2s<><00><01>"<22>"<22>"<22>"<22>"<22>"<22><12><12><12><12><1B><1B><1B><1B><1B><1B><04>?<3F><1E><1D><1D><1D><1D><1D><1D> <0E><15><17><17><06><03><1A>I<>I<>I<>I<> <0C><1A>I<><03><1A>B<>B<>B<>B<> <0C><1A>B<><10><10><10><10><10>08<>8<>8<>8<>
<17><17><17><17>
<10> <10> <10> <10> <10> <10> r