1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
U
ß=®d©ã@sÂddlZddlmZejr.ddlZddlmZeƒZ    ej
ddddœd    d
„ƒZ ej
de ej ddœd d
„ƒZ de ej ddœd d
„Z dddœdd„Zddœdd„Zdej e ej e dœdd„ZdS)éN)Úlocalé)ÚContextFzte.Literal[False]r)ÚsilentÚreturncCsdS©N©©rrrúDd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\click/globals.pyÚget_current_context sr .cCsdSrrr    rrr
r sc
CsNzt dtjd¡WSttfk
rH}z|s8tdƒ|‚W5d}~XYnXdS)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Úerrr
r s )ÚctxrcCstj dg¡ |¡dS)z*Pushes a new context to the current stack.rN)rÚ__dict__Ú
setdefaultÚappend)rrrr
Ú push_context-sr)rcCstj ¡dS)z%Removes the top level from the stack.N)rrÚpoprrrr
Ú pop_context2sr)ÚcolorrcCs(|dk    r |Stdd}|dk    r$|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    )r r)rrrrr
Úresolve_color_default7s 
r)F).)F)N)Útypingr Ú    threadingrÚ TYPE_CHECKINGZtyping_extensionsÚteÚcorerrÚoverloadr ÚboolÚOptionalrrrrrrr
Ú<module>s