Files
proxmox/venv/lib/python3.12/site-packages/click/__pycache__/exceptions.cpython-312.pyc

116 lines
14 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<0C>Hi<48>&<00><01><><00>ddlmZddlmZddlZddlmZddlm Z ddl
m Z ddl m Z ddlmZdd lmZej"rdd
lmZdd lmZdd lmZd$d <0A>ZGd<0E>de<17>ZGd<10>de<18>ZGd<12>de<19>ZGd<14>de<1A>ZGd<16>de<19>ZGd<18>de<19>ZGd<1A>de<19>ZGd<1C>de<19>ZGd<1E>de<18>Z Gd <20>d!e!<21>Z"Gd"<22>d#e!<21>Z#y)%<25>)<01> annotationsN)<01>gettext)<01>ngettext<78>)<01>get_text_stderr)<01>resolve_color_default)<01>echo)<01>format_filename)<01>Command)<01>Context)<01> Parameterc<01>Z<00>|<00>(t|t<00>sdjd<02>|D<00><00>S|S)Nz / c3<01>2K<00>|]}t|<01><00><01><00>y<00>w<01>N)<01>repr)<02>.0<EFBFBD>xs <20>R/home/intlc/projects/proxmox/venv/lib/python3.12/site-packages/click/exceptions.py<70> <genexpr>z$_join_param_hints.<locals>.<genexpr>s<00><00><><00>6<>a<EFBFBD>$<24>q<EFBFBD>'<27>6<>s<00>)<03>
isinstance<EFBFBD>str<74>join)<01>
param_hints r<00>_join_param_hintsrs,<00><00><11><1D>j<EFBFBD><1A>S<EFBFBD>&A<><14>z<EFBFBD>z<EFBFBD>6<>:<3A>6<>6<>6<> <15><15>c<01>B<00><00>eZdZdZdZd<07>fd<03> Zdd<04>Zdd<05>Zd d
d<06>Z<08>xZ S) <0B>ClickExceptionz8An exception that Click can handle and show to the user.rc<01>P<00><01>t<00>|<00>|<01>t<00>|_||_yr)<05>super<65>__init__r<00>
show_color<EFBFBD>message)<03>selfr"<00> __class__s <20>rr zClickException.__init__ s#<00><><00> <0A><07><18><17>!<21>(=<3D>'><3E><04><0F><1E><04> rc<01><00>|jSr<00>r"<00>r#s r<00>format_messagezClickException.format_message'<00> <00><00><13>|<7C>|<7C>rc<01><00>|jSrr&r's r<00>__str__zClickException.__str__*r)rc<01><><00>|<01>
t<00>}ttd<01>j|j <00><00><02>||j
<00><03>y)N<>Error: {message}r&<00><02>file<6C>color)rr <00>_<>formatr(r!<00>r#r/s r<00>showzClickException.show-sA<00><00> <0F><<3C>"<22>$<24>D<EFBFBD> <0C> <0A> <20> !<21> (<28> (<28><14>1D<31>1D<31>1F<31> (<28> G<><15><16>/<2F>/<2F>
r)r"r<00>return<72>None<6E>r5rr<00>r/zt.IO[t.Any] | Noner5r6)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> exit_coder r(r+r4<00> __classcell__<5F>r$s@rrrs&<00><><00>B<><12>I<EFBFBD><1F><1C><1C>
<EFBFBD>
rrc<01>4<00><00>eZdZdZdZdd<06>fd<03> Zddd<04>Z<06>xZS)<08>
UsageErrora+An internal exception that signals a usage error. This typically
aborts any further handling.
:param message: the error message to display.
:param ctx: optionally the context that caused this error. Click will
fill in the context automatically in some situations.
<20>c<01><><00><01>t<00>|<00>|<01>||_|jr|jj|_yd|_yr)rr <00>ctx<74>command<6E>cmd)r#r"rDr$s <20>rr zUsageError.__init__Cs4<00><><00> <0A><07><18><17>!<21><16><04><08>7;<3B>x<EFBFBD>x<EFBFBD>4<EFBFBD>8<EFBFBD>8<EFBFBD>#3<>#3<><04><08>T<EFBFBD><04>rc<01>6<00>|<01>
t<00>}d}d}|j<00>{|jjj|j<00><00>Lt d<02>j |jj |jjd<00><04>}|<03>d<05>}|j<00>A|jj}t|jj<00><00>d|<03><00>||<02><06>tt d<07>j |j<00><00><08>||<02><06>y) N<>z"Try '{command} {option}' for help.r)rE<00>option<6F>
r.r-r&) rrDrE<00>get_help_optionr1r2<00> command_path<74>help_option_namesr0r <00> get_usager()r#r/r0<00>hints rr4zUsageError.showHs<><00><00> <0F><<3C>"<22>$<24>D<EFBFBD><14><05><11><04> <10>H<EFBFBD>H<EFBFBD> <20><14><08><08> <20> <20>0<>0<><14><18><18>:<3A>F<><14>9<>:<3A>A<>A<><1C><08><08>-<2D>-<2D>d<EFBFBD>h<EFBFBD>h<EFBFBD>6P<36>6P<36>QR<51>6S<36>B<01><0E>D<EFBFBD><1B>V<EFBFBD>2<EFBFBD>;<3B>D<EFBFBD> <0F>8<EFBFBD>8<EFBFBD> <1F><18>H<EFBFBD>H<EFBFBD>N<EFBFBD>N<EFBFBD>E<EFBFBD> <10>D<EFBFBD>H<EFBFBD>H<EFBFBD>&<26>&<26>(<28>)<29><12>D<EFBFBD>6<EFBFBD>2<><14>U<EFBFBD> K<> <0C> <0A> <20> !<21> (<28> (<28><14>1D<31>1D<31>1F<31> (<28> G<><15><17>
rr)r"rrD<00>Context | Noner5r6r8)r9r:r;r<r=r r4r>r?s@rrArA8s<00><><00><08><12>I<EFBFBD>J<01>

<EFBFBD>
rrAc<01>F<00><00>eZdZdZ d d<05>fd<02> Zdd<03>Z<05>xZS)<07> BadParametera An exception that formats out a standardized error message for a
bad parameter. This is useful when thrown from a callback or type as
Click will attach contextual information to it (for instance, which
parameter it is).
.. versionadded:: 2.0
:param param: the parameter object that caused this error. This can
be left out, and Click will attach this info itself
if possible.
:param param_hint: a string that shows up as parameter name. This
can be used as alternative to `param` in cases
where custom validation should happen. If it is
a string it's used as such, if it's a list then
each item is quoted and separated.
c<01>B<00><01>t<00>|<00>||<02>||_||_yr)rr <00>paramr)r#r"rDrTrr$s <20>rr zBadParameter.__init__qs"<00><><00> <0E><07><18><17>#<23>&<26><1A><04>
<EFBFBD>$<24><04>rc<01>@<00>|j<00> |j}nW|j<00>&|jj|j<00>}n%t d<01>j |j <00><02>St d<03>j t|<01>|j <00><04>S)NzInvalid value: {message}r&z)Invalid value for {param_hint}: {message})rr")rrT<00>get_error_hintrDr1r2r"r)r#rs rr(zBadParameter.format_message|s<><00><00> <0F>?<3F>?<3F> &<26><1D><1F><1F>J<EFBFBD> <11>Z<EFBFBD>Z<EFBFBD> #<23><1D><1A><1A>2<>2<>4<EFBFBD>8<EFBFBD>8<EFBFBD><<3C>J<EFBFBD><14>/<2F>0<>7<>7<><04> <0C> <0C>7<>M<> M<><10><<3C>=<3D>D<>D<>(<28><1A>4<>d<EFBFBD>l<EFBFBD>l<EFBFBD>E<01>
<EFBFBD>
r<00>NNN)
r"rrDrPrT<00>Parameter | Noner<00>cabc.Sequence[str] | str | Noner5r6r7<00>r9r:r;r<r r(r>r?s@rrRrR_sM<00><><00><08>(#<23>"&<26>6:<3A> %<25><14> %<25><1C> %<25> <20> %<25>
4<> %<25>
<0E> %<25>

rrRc<01>V<00><00>eZdZdZ d d<06>fd<02> Zdd<03>Zdd<04>Z<06>xZS)<08>MissingParametera<72>Raised if click required an option or argument but it was not
provided when invoking the script.
.. versionadded:: 4.0
:param param_type: a string that indicates the type of the parameter.
The default is to inherit the parameter type from
the given `param`. Valid values are ``'parameter'``,
``'option'`` or ``'argument'``.
c<01>@<00><01>t<00>|<00>|xsd|||<04>||_y)NrH)rr <00>
param_type)r#r"rDrTrr^r$s <20>rr zMissingParameter.__init__<5F>s#<00><><00> <0E><07><18><17><1D>B<EFBFBD><03>U<EFBFBD>J<EFBFBD>?<3F>$<24><04>rc<01><><00>|j<00> |j}n4|j<00>&|jj|j<00>}nd}t |<01>}|rd|<01><00>nd}|j
}|<02>"|j<00>|jj }|j}|j<00>J|jjj|j|j<00><03>}|r |r |d|<04><00>z }n|}|rd|<03><00>nd}|dk(r td<06>}n=|dk(r td<08>}n,|d k(r td
<EFBFBD>}ntd <0B>j|<02> <0C>}|<05>|<01>d |<03><00>S)N<> rH)rTrDz. <20>argumentzMissing argumentrIzMissing option<6F> parameterzMissing parameterzMissing {param_type})r^<00>.) rrTrVrDrr^<00>param_type_namer"<00>type<70>get_missing_messager1r2)r#rr^<00>msg<73> msg_extra<72>missings rr(zMissingParameter.format_message<67>sP<00><00> <0F>?<3F>?<3F> &<26>:><3E>/<2F>/<2F>J<EFBFBD> <11>Z<EFBFBD>Z<EFBFBD> #<23><1D><1A><1A>2<>2<>4<EFBFBD>8<EFBFBD>8<EFBFBD><<3C>J<EFBFBD><1D>J<EFBFBD>&<26>z<EFBFBD>2<>
<EFBFBD>)3<>q<EFBFBD><1A> <0C>%<25><12>
<EFBFBD><19>_<EFBFBD>_<EFBFBD>
<EFBFBD> <15> <1D>$<24>*<2A>*<2A>"8<><1D><1A><1A>3<>3<>J<EFBFBD><12>l<EFBFBD>l<EFBFBD><03> <0F>:<3A>:<3A> !<21><1C>
<EFBFBD>
<EFBFBD><0F><0F>;<3B>;<3B><1A>j<EFBFBD>j<EFBFBD>d<EFBFBD>h<EFBFBD>h<EFBFBD><<3C><0E>I<EFBFBD><19><16><17>R<EFBFBD> <09>{<7B>+<2B>+<2B>C<EFBFBD>#<23>C<EFBFBD><1E><01>#<23><15>i<EFBFBD>B<EFBFBD><03> <16><1A> #<23><17>*<2A>+<2B>G<EFBFBD> <17>8<EFBFBD> #<23><17>(<28>)<29>G<EFBFBD> <17>;<3B> &<26><17>+<2B>,<2C>G<EFBFBD><17>.<2E>/<2F>6<>6<>*<2A>6<>M<>G<EFBFBD><19><19>:<3A>,<2C>a<EFBFBD><03>u<EFBFBD>-<2D>-rc<01><><00>|js?|jr|jjnd}td<01>j |<01><02>S|jS)NzMissing parameter: {param_name})<01>
param_name)r"rT<00>namer1r2)r#rks rr+zMissingParameter.__str__<5F>sB<00><00><13>|<7C>|<7C>,0<>J<EFBFBD>J<EFBFBD><14><1A><1A><1F><1F>D<EFBFBD>J<EFBFBD><14>6<>7<>><3E>><3E>*<2A>><3E>U<> U<><17><<3C><<3C> r)NNNNN) r"<00>
str | NonerDrPrTrXrrYr^rmr5r6r7)r9r:r;r<r r(r+r>r?s@rr\r\<00>sc<00><><00> <08>#<23>"<22>"&<26>6:<3A>!%<25> %<25><1B> %<25><1C> %<25> <20> %<25>
4<> %<25> <1F> %<25>
<0E> %<25>&.<2E>P rr\c<01>F<00><00>eZdZdZ d d<05>fd<02> Zdd<03>Z<05>xZS)<07> NoSuchOptionzfRaised if click attempted to handle an option that does not
exist.
.. versionadded:: 4.0
c<01>|<00><01>|<02>td<01>j|<01><02>}t<00>|<00> ||<04>||_||_y)NzNo such option: {name})rl)r1r2rr <00> option_name<6D> possibilities)r#rqr"rrrDr$s <20>rr zNoSuchOption.__init__<5F>sB<00><><00> <13>?<3F><17>0<>1<>8<>8<>k<EFBFBD>8<>J<>G<EFBFBD> <0A><07><18><17>#<23>&<26>&<26><04><18>*<2A><04>rc<01><><00>|js |jSdjt|j<00><00>}t ddt |j<00><00>j ||<01><04>}|j<00>d|<02><00>S)Nz, zDid you mean {possibility}?z#(Possible options: {possibilities}))<02> possibilityrrr`)rrr"r<00>sortedr<00>lenr2)r#<00>possibility_str<74>suggests rr(zNoSuchOption.format_message<67>sv<00><00><13>!<21>!<21><17><<3C><<3C> <1F><1E>)<29>)<29>F<EFBFBD>4<EFBFBD>+=<3D>+=<3D>$><3E>?<3F><0F><1A> )<29> 1<> <0F><04>"<22>"<22> #<23>
<EFBFBD> <11>&<26>_<EFBFBD>O<EFBFBD>&<26>
L<EFBFBD> <10>
<17>,<2C>,<2C><1E>q<EFBFBD><17> <09>*<2A>*rrW)
rqrr"rmrrzcabc.Sequence[str] | NonerDrPr5r6r7rZr?s@rroro<00>sM<00><><00><08>#<23>37<33>"<22> +<2B><18> +<2B><1C> +<2B>1<> +<2B>
<1C> +<2B>
<0E> +<2B>
+rroc<01>6<00><00>eZdZdZ d d<04>fd<02> Z<04>xZS)<05>BadOptionUsageaRaised if an option is generally supplied but the use of the option
was incorrect. This is for instance raised if the number of arguments
for an option is not correct.
.. versionadded:: 4.0
:param option_name: the name of the option being used incorrectly.
c<01>4<00><01>t<00>|<00>||<03>||_yr)rr rq)r#rqr"rDr$s <20>rr zBadOptionUsage.__init__<5F>s<00><><00> <0E><07><18><17>#<23>&<26>&<26><04>rr)rqrr"rrDrPr5r6)r9r:r;r<r r>r?s@rrzrz<00>s9<00><><00><08>EI<01>'<27><1E>'<27>),<2C>'<27>3A<33>'<27> <0A>'<27>'rrzc<01><00>eZdZdZy)<03>BadArgumentUsagez<65>Raised if an argument is generally supplied but the use of the argument
was incorrect. This is for instance raised if the number of values
for an argument is not correct.
.. versionadded:: 6.0
N<>r9r:r;r<<00>rrr}r}s<00><00>rr}c<01>*<00><00>eZdZd<03>fd<01> Zddd<02>Z<04>xZS)<06>NoArgsIsHelpErrorc<01>H<00><01>|t<00>|<00>|j<00>|<01><01>y)N)rD)rr <00>get_help)r#rDr$s <20>rr zNoArgsIsHelpError.__init__ s<00><><00> <0C> <0A><07><18><13><1C><1C><1E>S<EFBFBD><18>1rc<01>f<00>t|j<00>|d|jj<00><02>y)NT)r/<00>errr0)r r(rDr0r3s rr4zNoArgsIsHelpError.shows!<00><00> <0C>T<EFBFBD> <20> <20> "<22><14>4<EFBFBD>t<EFBFBD>x<EFBFBD>x<EFBFBD>~<7E>~<7E>Nr)rDr r5r6rr8)r9r:r;r r4r>r?s@rr<>r<> s<00><><00>2<>O<01>Orr<>c<01>.<00><00>eZdZdZdd<05>fd<02> Zdd<03>Z<05>xZS)<07> FileErrorz"Raised if a file cannot be opened.c<01>l<00><01>|<02> td<01>}t<00>|<00> |<02>t|<01>|_||_y)Nz unknown error)r1rr r
<00> ui_filename<6D>filename)r#r<>rOr$s <20>rr zFileError.__init__s3<00><><00> <0F><<3C><14>_<EFBFBD>%<25>D<EFBFBD> <0A><07><18><14><1E> /<2F><08> 9<><04><18> <20><04> rc<01>b<00>td<01>j|j|j<00><02>S)Nz+Could not open file {filename!r}: {message})r<>r")r1r2r<>r"r's rr(zFileError.format_message s0<00><00><10>><3E>?<3F>F<>F<><19>%<25>%<25>t<EFBFBD>|<7C>|<7C>G<01>
<EFBFBD>
rr)r<>rrOrmr5r6r7rZr?s@rr<>r<>s<00><><00>,<2C>!<21>
rr<>c<01><00>eZdZdZy)<03>Abortz=An internal signalling exception that signals Click to abort.Nr~rrrr<>r<>&s<00><00>Grr<>c<01><00>eZdZdZdZddd<03>Zy)<07>Exitz<74>An exception that indicates that the application should exit with some
status code.
:param code: the status code to exit with.
<20>r=c<01><00>||_yrr<>)r#<00>codes rr z Exit.__init__3s <00><00>"<22><04>rN)r)r<><00>intr5r6)r9r:r;r<<00> __slots__r rrrr<>r<>*s<00><00><08> <1F>I<EFBFBD>#rr<>)rrYr5rm)$<24>
__future__r<00>collections.abc<62>abc<62>cabc<62>typing<6E>trr1r<00>_compatr<00>globalsr<00>utilsr r
<00> TYPE_CHECKING<4E>corer r r r<00> ExceptionrrArRr\rorzr}r<>r<><00> RuntimeErrorr<72>r<>rrr<00><module>r<>s<><00><01>"<22><1E><12> <20><1C>$<24>*<2A><17>"<22><04>?<3F>?<3F><1D><1D><1F><16>
<EFBFBD>Y<EFBFBD>
<EFBFBD><$
<EFBFBD><1E>$
<EFBFBD>N'
<EFBFBD>:<3A>'
<EFBFBD>TD <20>|<7C>D <20>N+<2B>:<3A>+<2B>D'<27>Z<EFBFBD>'<27>"<08>z<EFBFBD><08>O<01>
<EFBFBD>O<01>
<EFBFBD><0E>
<EFBFBD>"H<01>L<EFBFBD>H<01>
#<23><<3C>
#r