Files
ServerSync/lib/questionary/prompts/__pycache__/confirm.cpython-314.pyc

61 lines
6.2 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>i<EFBFBD><00><00><><00>^RIHt^RIHt^RIHt^RIHt^RIHt^RI H
t
^RI H t ^RI Ht^R I Ht^R
I Ht^R I Ht^R I Ht^R IHt^RIHtR]RRR3RRlltR#)<13>)<01>Any)<01>Optional)<01> PromptSession)<01>to_formatted_text)<01> KeyBindings)<01>Keys)<01>Style)<01>DEFAULT_QUESTION_PREFIX)<01>NO)<01> NO_OR_YES)<01>YES)<01> YES_OR_NO)<01>Question)<01>merge_styles_defaultTNc<00><><00>V^8<>dQhR\R\R\R\\,R\R\\,R\R\
/#) <09><00>message<67>default<6C>qmark<72>style<6C>
auto_enter<EFBFBD> instruction<6F>kwargs<67>return)<06>str<74>boolrr rr)<01>formats"<22>B/tmp/pip-target-wqrk2shd/lib/python/questionary/prompts/confirm.py<70> __annotate__rsj<00><00>r<06>r<06> <10>r<06> <11>r<06> <0F>r<06> <14>E<EFBFBD>?<3F> r<06>
<15> r<06> <1A>#<23><1D> r<06><12>r<06><0E>r<06>c <04><>aaaaaaa<11>\V.4pRRRR/oVVVVV3RlpV3Rlo\4p V P\PRR7V P\P
RR7R 44p
V PR
4V PR 4VVV3R l44p V PR 4V PR4VVV3Rl44p V P\P 4V3Rl4p V P\PRR7VVV3Rl4pV P\P4R4p\\V3RV RV/VBP4#)a<>A yes or no question. The user can either confirm or deny.
This question type can be used to prompt the user for a confirmation
of a yes-or-no question. If the user just hits enter, the default
value will be returned.
Example:
>>> import questionary
>>> questionary.confirm("Are you amazed?").ask()
? Are you amazed? Yes
True
.. image:: ../images/confirm.gif
This is just a really basic example, the prompt can be customised using the
parameters.
Args:
message: Question text.
default: Default value will be returned if the user just hits
enter.
qmark: Question prefix displayed in front of the question.
By default this is a ``?``.
style: A custom color and style for the question parts. You can
configure colors as well as font types for different elements.
auto_enter: If set to `False`, the user needs to press the 'enter' key to
accept their answer. If set to `True`, a valid input will be
accepted without the need to press 'Enter'.
instruction: A message describing how to proceed through the
confirmation prompt.
Returns:
:class:`Question`: Question instance, ready to be prompted (using `.ask()`).
<EFBFBD>answerN<72>completeFc<00><><<05>.pVPRS34VPRRPS434SeVPRS34MESR,'g7S'd\M\pVPRRPV434SR,e/SR,'d\M\
pVPRV34\ V4#)z class:qmarkzclass:questionz {} zclass:instructionr#z{} r"z class:answer)<07>appendrrr r r r)<08>tokens<6E> _instructionr"rrrr<00>statuss <20><><EFBFBD><EFBFBD><EFBFBD>r<00>get_prompt_tokens<6E>"confirm.<locals>.get_prompt_tokensGs<><00><><00><13><06><0E> <0A> <0A>}<7D>e<EFBFBD>,<2C>-<2D><0E> <0A> <0A>'<27><16><1D><1D>w<EFBFBD>)?<3F>@<40>A<> <16> "<22> <12>M<EFBFBD>M<EFBFBD>.<2E> <0B><<3C> =<3D><17>
<EFBFBD>#<23>#<23>(/<2F>9<EFBFBD>Y<EFBFBD>L<EFBFBD> <12>M<EFBFBD>M<EFBFBD>.<2E><05> <0C> <0C>\<5C>0J<30>K<> L<> <11>(<28> <1B> '<27>"<22>8<EFBFBD>,<2C>,<2C>S<EFBFBD>"<22>F<EFBFBD> <12>M<EFBFBD>M<EFBFBD>><3E>6<EFBFBD>2<> 3<> <20><16>(<28>(r c<00>X<<01>RSR&VPPSR,R7R#)Tr#r")<01>resultN)<02>app<70>exit<69><02>eventr(s&<26>r<00>exit_with_result<6C>!confirm.<locals>.exit_with_resultYs$<00><><00>!<21><06>z<EFBFBD><1A> <0A> <09> <09><0E><0E>f<EFBFBD>X<EFBFBD>.<2E><0E>/r T)<01>eagerc<00>H<00>VPP\RR7R#)zclass:aborting)<02> exceptionrN)r-r.<00>KeyboardInterrupt<70>r0s&r<00>_<>confirm.<locals>.__s<00><00> <0E> <09> <09><0E><0E>!2<>:J<><0E>Kr <00>n<>Nc<00>6<<03>RSR&S'd S!V4R#R#)Fr"N<><00>r0rr1r(s&<26><><EFBFBD>r<00>key_n<5F>confirm.<locals>.key_nds<00><><00>!<21><06>x<EFBFBD><18> <15> <1C>U<EFBFBD> #<23> r <00>y<>Yc<00>6<<03>RSR&S'd S!V4R#R#)Tr"Nr=r>s&<26><><EFBFBD>r<00>key_y<5F>confirm.<locals>.key_yks<00><><00> <20><06>x<EFBFBD><18> <15> <1C>U<EFBFBD> #<23> r c<00><<01>RSR&R#)Nr"r=r/s&<26>r<00> key_backspace<63>confirm.<locals>.key_backspacers <00><><00><1F><06>x<EFBFBD>r c<00>8<<03>SR,fSSR&S!V4R#)r"Nr=)r0rr1r(s&<26><><EFBFBD>r<00>
set_answer<EFBFBD>confirm.<locals>.set_answervs <00><><00> <11>(<28> <1B> #<23>&<26>F<EFBFBD>8<EFBFBD> <1C><18><15>r c<04><00>R#)zDisallow inserting other text.Nr=r7s&r<00>other<65>confirm.<locals>.other}s<00>r <00> key_bindingsr) rr<00>addr<00>ControlQ<6C>ControlC<6C>ControlH<6C>ControlMrrrr-)rrrrrrr<00> merged_styler)<00>bindingsr8r?rDrGrJrMr1r(sfff&ff, @@r<00>confirmrWsp<00><><00>`(<28><15><07>0<>L<EFBFBD><16><04>j<EFBFBD>%<25> 0<>F<EFBFBD>)<29>)<29>$0<><1B>}<7D>H<EFBFBD> <0A>\<5C>\<5C>$<24>-<2D>-<2D>t<EFBFBD>\<5C>,<2C> <0A>\<5C>\<5C>$<24>-<2D>-<2D>t<EFBFBD>\<5C>,<2C>L<01>-<2D>-<2D>L<01><0E>\<5C>\<5C>#<23><16> <0A>\<5C>\<5C>#<23><16>$<24><17><17>$<24>
<0E>\<5C>\<5C>#<23><16> <0A>\<5C>\<5C>#<23><16>$<24><17><17>$<24>
<0E>\<5C>\<5C>$<24>-<2D>-<2D> <20> <20>!<21> <20><0E>\<5C>\<5C>$<24>-<2D>-<2D>t<EFBFBD>\<5C>,<2C> <20>-<2D> <20> <0E>\<5C>\<5C>$<24>(<28>(<28><1B>-<2D><1C>-<2D> <14><15> <1D>
<EFBFBD>,4<>
<EFBFBD><H<>
<EFBFBD>LR<EFBFBD>
<EFBFBD>
<0A>#<23> <06>r )<18>typingrr<00>prompt_toolkitr<00>prompt_toolkit.formatted_textr<00>prompt_toolkit.key_bindingr<00>prompt_toolkit.keysr<00>prompt_toolkit.stylesr <00>questionary.constantsr
r r r r<00>questionary.questionr<00>questionary.stylesrrWr=r r<00><module>rasL<00><01><16><1B>(<28>;<3B>2<>$<24>'<27>9<>$<24>+<2B>%<25>+<2B>)<29>3<>
<19>(<28>!<21><1B>!%<25> r<06>rr