/usr/lib/python3/dist-packages/click/__pycache__
NameSizeModeActions
core.cpython-310.pyc890140644editdlrm
decorators.cpython-310.pyc142650644editdlrm
exceptions.cpython-310.pyc101630644editdlrm
formatting.cpython-310.pyc94320644editdlrm
globals.cpython-310.pyc24140644editdlrm
parser.cpython-310.pyc136430644editdlrm
shell_completion.cpython-310.pyc165120644editdlrm
termui.cpython-310.pyc268080644editdlrm
testing.cpython-310.pyc151400644editdlrm
types.cpython-310.pyc331470644editdlrm
utils.cpython-310.pyc177770644editdlrm
_compat.cpython-310.pyc156940644editdlrm
_termui_impl.cpython-310.pyc160440644editdlrm
_textwrap.cpython-310.pyc15190644editdlrm
_unicodefun.cpython-310.pyc22860644editdlrm
_winconsole.cpython-310.pyc76350644editdlrm
__init__.cpython-310.pyc26590644editdlrm
Edit: /usr/lib/python3/dist-packages/click/__pycache__/globals.cpython-310.pyc (2414B)
o +ca@sddlZddlZddlmZejrddlZddlmZeZ ej ddd d Z ej dde dej d fd d Z dde dej d fdd Z dddZdddZddej e dej e fddZdS)N)local)ContextFsilentte.Literal[False]returnrcCdSNrr r //usr/lib/python3/dist-packages/click/globals.pyget_current_context r .cCrr r r r r r r rc CsNz tdtjdWSttfy&}z|std|WYd}~dSd}~ww)aReturns 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`. rz!There is no active click context.N)tcast_localstackAttributeError IndexError RuntimeError)rer r r r s  ctxcCstjdg|dS)z*Pushes a new context to the current stack.rN)r__dict__ setdefaultappend)rr r r push_context.srcCstjdS)z%Removes the top level from the stack.N)rrpopr r r r pop_context3srcolorcCs(|dur|Stdd}|dur|jSdS)zInternal 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)rrr r r resolve_color_default8s  r )F)rrrr).)rrrN)rNr )typingr threadingr TYPE_CHECKINGtyping_extensionstecorerroverloadr boolOptionalrrr r r r r s    $