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

86 lines
6.1 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>ib <00><00><><00>^RIHt^RIHt^RIHt^RIHt^RIHt^RIHt!RR]4t R R
lt
!R R 4t R #)<0E>)<01>Any)<01>Dict)<01>
NamedTuple)<01>Sequence)<01>DEFAULT_KBI_MESSAGE<47><01>Questionc<00>0a<00>]tRt^
toRtV3RltRtVtR#)<05> FormFieldz<64>
Represents a question within a form
Args:
key: The name of the form field.
question: The question to ask in the form field.
c<00>2<<01>V^8<>dQh/S[;R&S[;R&#)<03><00>key<65>question)<02>strr )<02>format<61> __classdict__s"<22><>7/tmp/pip-target-wqrk2shd/lib/python/questionary/form.py<70> __annotate__<5F>FormField.__annotate__
s<00><><00><00>
<0A>H<EFBFBD><01><17><16><01><00>N)<08>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__<5F>__annotate_func__<5F>__static_attributes__<5F>__classdictcell__<5F>rs@rr r
s<00><><00><00><08><01>rr c<00>(<00>V^8<>dQhR\RR/#)r <00>kwargs<67>return<72>Formr)rs"rrrs<00><00> ?<3F> ?<3F>8<EFBFBD> ?<3F><06> ?rc <04>><00>\RVP44!#)z<>Create a form with multiple questions.
The parameter name of a question will be the key for the answer in
the returned dict.
Args:
kwargs: Questions to ask in the form.
c3<00><"<00>TFwr\W4x<00>K R#5i<01>N<>r )<03>.0<EFBFBD>k<>qs& r<00> <genexpr><3E>form.<locals>.<genexpr> s<00><00><00>=<3D>n<EFBFBD>d<EFBFBD>a<EFBFBD>)<29>A<EFBFBD>/<2F>/<2F>n<EFBFBD>s<00>)r$<00>items)r"s,r<00>formr/s<00><00> <10>=<3D>f<EFBFBD>l<EFBFBD>l<EFBFBD>n<EFBFBD>=<3D> ><3E>>rc<00><>a<00>]tRt^#toRtV3RlRltRV3RlRlltRV3RlRlltR]3V3R lR
llt R]3V3R lR llt
V3R lt Rt Vt R#)r$z<>Multi question prompts. Questions are asked one after another.
All the answers are returned as a dict with one entry per question.
This class should not be invoked directly, instead use :func:`form`.
c<00>$<<01>V^8<>dQhRS[RR/#)r <00> form_fieldsr#Nr()rrs"<22>rr<00>Form.__annotate__-s<00><><00>'<27>'<27>Y<EFBFBD>'<27>4<EFBFBD>'rc<08><00>WnR#r'<00>r2)<02>selfr2s&*r<00>__init__<5F> Form.__init__-s<00><00>&<26>rFc<00><<<01>V^8<>dQhRS[RS[S[S[3,/#<00>r <00> patch_stdoutr#<00><04>boolrrr)rrs"<22>rrr30s'<00><><00> V<01> V<01>t<EFBFBD> V<01><04>S<EFBFBD>#<23>X<EFBFBD><0E> Vrc <0C><><00>VPUu/uF(q"PVPPV4bK* up#uupi)aAsk the questions synchronously and return user response.
Does not catch keyboard interrupts.
Args:
patch_stdout: Ensure that the prompt renders correctly if other threads
are printing to stdout.
Returns:
The answers from the form.
)r2rr<00>
unsafe_ask<EFBFBD>r6r;<00>fs&& rr?<00>Form.unsafe_ask0s<<00><00>EI<01>DT<44>DT<44>U<>DT<44>q<EFBFBD><05><05>q<EFBFBD>z<EFBFBD>z<EFBFBD>,<2C>,<2C>\<5C>:<3A>:<3A>DT<44>U<>U<><55>Us<00>.Ac<00><<<01>V^8<>dQhRS[RS[S[S[3,/#r:r<)rrs"<22>rrr3>s#<00><><00>
<EFBFBD>
<EFBFBD>4<EFBFBD>
<EFBFBD>D<EFBFBD><13>c<EFBFBD><18>N<EFBFBD>
rc<00> <0C><>"<00>VPUu/uF1pVPVPPV4GRjx<01>L
bK3 up#L uupi5i)aAsk the questions using asyncio and return user response.
Does not catch keyboard interrupts.
Args:
patch_stdout: Ensure that the prompt renders correctly if other threads
are printing to stdout.
Returns:
The answers from the form.
N)r2rr<00>unsafe_ask_asyncr@s&& rrE<00>Form.unsafe_ask_async>sP<00><00><00><1A>%<25>%<25>
<EFBFBD>%<25><01> <0E>E<EFBFBD>E<EFBFBD><11><1A><1A>4<>4<>\<5C>B<>B<> B<>%<25>
<EFBFBD>
<EFBFBD>B<><42>
<EFBFBD>s'<00>A<01>.A <04>A <0C>A <04>A<01> A <04> Ac<00>B<<01>V^8<>dQhRS[RS[RS[S[S[3,/#<00>r r;<00>kbi_msgr#<00>r=rrr)rrs"<22>rrr3O<00>-<00><><00><16><16> <20><16>36<33><16> <0A>c<EFBFBD>3<EFBFBD>h<EFBFBD><1E>rc <0C>b<00>VPV4# \d\T4/u#i;i)a!Ask the questions synchronously and return user response.
Args:
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.
Returns:
The answers from the form.
)r?<00>KeyboardInterrupt<70>print<6E>r6r;rIs&&&r<00>ask<73>Form.askOs1<00><00> <16><17>?<3F>?<3F><<3C>0<> 0<><30> <20> <16> <11>'<27>N<EFBFBD><15>I<EFBFBD> <16>s <00><00>.<03>.c<00>B<<01>V^8<>dQhRS[RS[RS[S[S[3,/#rHrJ)rrs"<22>rrr3crKrc<00> <0C>~"<00>VPV4GRjx<01>L
#L \d\T4/u#i;i5i)a!Ask the questions using asyncio and return user response.
Args:
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.
Returns:
The answers from the form.
N)rErMrNrOs&&&r<00> ask_async<6E>Form.ask_asynccs;<00><00><00> <16><1D>.<2E>.<2E>|<7C><<3C><<3C> <<3C><<3C><> <20> <16> <11>'<27>N<EFBFBD><15>I<EFBFBD> <16>s(<00>=<01><00><04><00>=<01><00>:<03>=<01>:<03>=c<00>6<<01>V^8<>dQh/S[S[,;R&#)r r2)rr )rrs"<22>rrr3#s<00><><00><00><1A>)<29>$<24>$<24>rr5N)F)rrrrrr7r?rErrPrTrrrr s@rr$r$#sV<00><><00><00><08>'<27>'<27> V<01> V<01>
<EFBFBD>
<EFBFBD>$$)<29>9L<39><16><16>*$)<29>9L<39><16><16>A<01>rr$N) <0C>typingrrrr<00>questionary.constantsr<00>questionary.questionr r r/r$rrr<00><module>rZs4<00><01><16><17><1D><1B>5<>)<29>
<17>
<EFBFBD>
<17> ?<3F>R<16>Rr