Files
ServerSync/lib/questionary/__pycache__/prompt.cpython-314.pyc

112 lines
9.5 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>i!!<00><00><><00>^RIHt^RIHt^RIHt^RIHt^RIHt^RIHt^RIHt^RI H
t
^R I H t ^R
I Ht^R I Ht^R IHt!R R]4tRRR] 3RRlltRRRlltR#)<16>)<01>Any)<01>Dict)<01>Iterable)<01>Mapping)<01>Optional)<01>Union)<01>
ColorDepth)<01>utils)<01>DEFAULT_KBI_MESSAGE)<01>AVAILABLE_PROMPTS)<01>prompt_by_name)<01>print_formatted_textc<00>Faa<01>]tRt^toRtRV3RlV3RllltRtVtV;t#)<06>PromptParameterExceptionz+Received a prompt with a missing parameter.c<00>:<<01>V^8<>dQhRS[RS[S[,RR/#)<05><00>message<67>errors<72>returnN)<03>strr<00> BaseException)<02>format<61> __classdict__s"<22><>9/tmp/pip-target-wqrk2shd/lib/python/questionary/prompt.py<70> __annotate__<5F>%PromptParameterException.__annotate__s-<00><><00>J<01>J<01><03>J<01>X<EFBFBD>m<EFBFBD>-D<>J<01>PT<50>J<01>c<08>0<<01>\SV`RV R2V4R#)zYou must provide a `z` valueN)<02>super<65>__init__)<04>selfrr<00> __class__s&&&<26>rr <00>!PromptParameterException.__init__s<00><><00> <0A><07><18>/<2F><07>y<EFBFBD><07>@<40>&<26>Ir<00>)N) <09>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__r <00>__static_attributes__<5F>__classdictcell__<5F> __classcell__)r"rs@@rrrs<00><><00><00>5<>J<01>J<01>JrrNFc<00>B<00>V^8<>dQhR\\\\3,\\
\\3,,3,R\ \
\\3,,R\R\R\R\R\\\3,/#)r<00> questions<6E>answers<72> patch_stdout<75>
true_color<EFBFBD>kbi_msg<73>kwargsr<00>rrrrrrr<00>bool)rs"rrrs<><00><00>8<12>8<12><14>T<EFBFBD>#<23>s<EFBFBD>(<28>^<5E>X<EFBFBD>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>.?<3F>%@<40>@<40>A<>8<12> <15>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>'<27> (<28>8<12><17>8<12><15> 8<12>
<11> 8<12> <12> 8<12>
<EFBFBD>#<23>s<EFBFBD>(<28>^<5E>8rc <04>Z<00>\WW#3/VB# \d\T4/u#i;i)akPrompt the user for input on all the questions.
Catches keyboard interrupts and prints a message.
See :func:`unsafe_prompt` for possible question configurations.
Args:
questions: A list of question configs representing questions to
ask. A question config may have the following options:
* type - The type of question.
* name - An ID for the question (to identify it in the answers :obj:`dict`).
* when - Callable to conditionally show the question. This function
takes a :obj:`dict` representing the current answers.
* filter - Function that the answer is passed to. The return value of this
function is saved as the answer.
Additional options correspond to the parameter names for
particular question types.
answers: Default answers.
patch_stdout: Ensure that the prompt renders correctly if other threads
are printing to stdout.
kbi_msg: The message to be printed on a keyboard interrupt.
true_color: Use true color output.
color_depth: Color depth to use. If ``true_color`` is set to true then this
value is ignored.
type: Default ``type`` value to use in question config.
filter: Default ``filter`` value to use in question config.
name: Default ``name`` value to use in question config.
when: Default ``when`` value to use in question config.
default: Default ``default`` value to use in question config.
kwargs: Additional options passed to every question.
Returns:
Dictionary of question answers.
)<03> unsafe_prompt<70>KeyboardInterrupt<70>print)r.r/r0r1r2r3s&&&&&,r<00>promptr:s5<00><00>h<12><1C>Y<EFBFBD><1C>T<>V<EFBFBD>T<>T<><54> <1C><12> <0A>g<EFBFBD><0E><11> <09><12>s <00> <00>*<03>*c<00>6<00>V^8<>dQhR\\\\3,\\
\\3,,3,R\ \
\\3,,R\R\R\R\\\3,/#)rr.r/r0r1r3rr4)rs"rrrTs<><00><00>V<13>V<13><14>T<EFBFBD>#<23>s<EFBFBD>(<28>^<5E>X<EFBFBD>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>.?<3F>%@<40>@<40>A<>V<13> <15>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>'<27> (<28>V<13><17>V<13><15> V<13>
<12> V<13> 
<EFBFBD>#<23>s<EFBFBD>(<28>^<5E> Vrc <04>v<00>\V\4'dV.p\T;'g/4pVEF<>p\V4pRV9d \R4hRV9dVR,R8wd \R4hVP4pVP V4VP R4pVP RR4pVR8XdVP RR4MVP R4p VP RR4p
V'd\ PVR&V
'd>\VR,4'dVR,!V4'gEKM \R
4hVR8Xd@VP R 4p TP R R4\T 3/TBT 'dRY&EKgVPR 4pVe"\V4'dV!V4pW<>R &W<>R &V'd\V4'g \R4h\VPR44'dVR,!V4VR&\V4pV'g&\RV RRP\ 4 R24h\#\$P&!VV44pV'd\V^,4hV!R/VBpVP)V4pVfEK<>V'd
V!V4pVW&EK<> V# \dp \RT R T 24T hRp ? ii;i \dp \R 4T hRp ? ii;i \dp \RT R T 24T hRp ? ii;i)aPrompt the user for input on all the questions.
Won't catch keyboard interrupts.
Args:
questions: A list of question configs representing questions to
ask. A question config may have the following options:
* type - The type of question.
* name - An ID for the question (to identify it in the answers :obj:`dict`).
* when - Callable to conditionally show the question. This function
takes a :obj:`dict` representing the current answers.
* filter - Function that the answer is passed to. The return value of this
function is saved as the answer.
Additional options correspond to the parameter names for
particular question types.
answers: Default answers.
patch_stdout: Ensure that the prompt renders correctly if other threads
are printing to stdout.
true_color: Use true color output.
color_depth: Color depth to use. If ``true_color`` is set to true then this
value is ignored.
type: Default ``type`` value to use in question config.
filter: Default ``filter`` value to use in question config.
name: Default ``name`` value to use in question config.
when: Default ``when`` value to use in question config.
default: Default ``default`` value to use in question config.
kwargs: Additional options passed to every question.
Returns:
Dictionary of question answers.
Raises:
KeyboardInterrupt: raised on keyboard interrupt
<EFBFBD>type<70>namer9<00>filterN<72>when<65> color_depthzProblem in 'when' check of z question: z8'when' needs to be function that accepts a dict argumentr<00>input<75>choicesz6'filter' needs to be function that accepts an argument<6E>defaultzNo question type 'z"' found. Known question types are z, <20>.zProblem processing 'filter' of r$)<15>
isinstance<EFBFBD>dictr<00>copy<70>update<74>popr <00>
TRUE_COLOR<EFBFBD>callable<6C> Exception<6F>
ValueError<EFBFBD>KeyErrorr<00>getr <00>joinr <00>listr
<00>missing_arguments<74>
unsafe_ask)r.r/r0r1r3<00>question_config<69>_kwargs<67>_type<70>_filterr>r@<00> exceptionr<00>erC<00>calculated_choices<65>create_question_func<6E> missing_args<67>question<6F>answers&&&&, rr7r7Ts7<00><00>f<12>)<29>T<EFBFBD>"<22>"<22><1E>K<EFBFBD> <09><12>7<EFBFBD>=<3D>=<3D>b<EFBFBD>!<21>G<EFBFBD>$<24><0F><1E><EFBFBD>/<2F><0F> <11><1F> (<28>*<2A>6<EFBFBD>2<> 2<> <11><1F> (<28>_<EFBFBD>V<EFBFBD>-D<><07>-O<>*<2A>6<EFBFBD>2<> 2<><18>+<2B>+<2B>-<2D><07><0F><0E><0E><EFBFBD>'<27><17> <0B> <0B>F<EFBFBD>#<23><05><19>+<2B>+<2B>h<EFBFBD><04>-<2D><07>,1<>W<EFBFBD>,<<3C>w<EFBFBD>{<7B>{<7B>6<EFBFBD>4<EFBFBD>(<28>'<27>+<2B>+<2B>f<EFBFBD>BU<42><04><16>{<7B>{<7B>6<EFBFBD>4<EFBFBD>(<28><04> <15>%/<2F>%:<3A>%:<3A>G<EFBFBD>M<EFBFBD> "<22> <0F><17><0F><06>/<2F>0<>0<>%<25>*<2A>6<EFBFBD>2<>7<EFBFBD>;<3B>;<3B> <20><<3C>!<21>N<><12><12>
<11>G<EFBFBD> <1B> A<01>!<21>+<2B>+<2B>i<EFBFBD>0<><07> <14>K<EFBFBD>K<EFBFBD><07><14> &<26> <20><17> 4<>G<EFBFBD> 4<><13> $<24><07> <0A> <14>!<21>%<25>%<25>i<EFBFBD>0<><07> <12> <1E>8<EFBFBD>G<EFBFBD>#4<>#4<>!(<28><17>!1<> <1E>);<3B>I<EFBFBD> &<26> 2<>9<EFBFBD> <1D> <12><1B>G<EFBFBD>$<24>$<24> <20>L<><12><12> <14>O<EFBFBD>'<27>'<27> <09>2<> 3<> 3<>!0<><19>!;<3B>G<EFBFBD>!D<>G<EFBFBD>I<EFBFBD> <1E>-<2D>e<EFBFBD>4<><1C>#<23><1C>$<24>U<EFBFBD>G<EFBFBD>,,<2C>,0<>I<EFBFBD>I<EFBFBD>6G<36>,H<>+I<><11>L<01><0E> <0E>
<1C>E<EFBFBD>3<>3<>4H<34>'<27>R<>S<> <0C> <17>*<2A><<3C><01>?<3F>;<3B> ;<3B>'<27>2<>'<27>2<><08><19>$<24>$<24>\<5C>2<><06> <11> <1D><16>%<25>$<24>V<EFBFBD>_<EFBFBD>F<EFBFBD> #<23>G<EFBFBD>M<EFBFBD>y%<25>| <13>N<EFBFBD><4E>I!<21>%<25>$<24>5<>$<24><16>{<7B>9<EFBFBD>+<2B>V<><16>$<24>%<25><>%<25><><1C> A<01>.<2E>y<EFBFBD>9<>q<EFBFBD>@<40><> A<01><>`!<21>%<25>$<24>9<>$<24><16>@%<25>%.<2E>K<EFBFBD>1<><16>%<25>%<25><>%<25>sH<00>.K<02>K7<02>?L<02> K4<05>K/<05>/K4<05>7 L<05> L<05>L<05> L8<05>!L3<05>3L8)NFF)<16>typingrrrrrr<00>prompt_toolkit.outputr <00> questionaryr
<00>questionary.constantsr <00>questionary.promptsr r <00>questionary.prompts.commonrrNrr:r7r$rr<00><module>rfsW<00><01><16><17><1B><1A><1B><18>,<2C><1D>5<>1<>.<2E>;<3B>J<01>z<EFBFBD>J<01>,0<><1E><1C>&<26> 8<12>vV<13>Vr