ó œÃÒYc@sGddlmZeƒZed„Zd„Zd„Zdd„ZdS(iÿÿÿÿ(tlocalcCsHyttdƒdSWn,ttfk rC|sDtdƒ‚qDnXdS(sƒ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 it's behavior based on the current context. To push the current context, :meth:`Context.scope` can be used. .. versionadded:: 5.0 :param silent: is set to `True` the return value is `None` if no context is available. The default behavior is to raise a :exc:`RuntimeError`. tstackiÿÿÿÿs!There is no active click context.N(tgetattrt_localtAttributeErrort IndexErrort RuntimeError(tsilent((s`/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/click/click/globals.pytget_current_contexts cCs tjjdgƒj|ƒdS(s*Pushes a new context to the current stack.RN(Rt__dict__t setdefaulttappend(tctx((s`/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/click/click/globals.pyt push_contextscCstjjƒdS(s%Removes the top level from the stack.N(RRtpop(((s`/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/click/click/globals.pyt pop_context"scCs6|dk r|Stdtƒ}|dk r2|jSdS(s«"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. RN(tNoneRtTruetcolor(RR ((s`/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/click/click/globals.pytresolve_color_default's   N( t threadingRRtFalseRR RRR(((s`/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/click/click/globals.pyts