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

63 lines
4.4 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>iK <00><00><><00>^RIHt^RIHt^RIHt^RIHt^RIHt^RIHt^RIH t ^RI
H t ^R I H t ^R
IHt^R IHt^R IHt^R IHt^RIHtRR]RRRR3RRlltR#)<14>)<01>Any)<01>List)<01>Optional)<01>Tuple)<01>Document)<01>Lexer)<01> SimpleLexer)<01> PromptSession)<01>Style)<01>DEFAULT_QUESTION_PREFIX)<01>INSTRUCTION_MULTILINE)<01>build_validator)<01>Question)<01>merge_styles_default<6C>NFc<00><><00>V^8<>dQhR\R\R\R\R\\,R\R\\,R\\
,R \R
\ /
#) <0B><00>message<67>default<6C>validate<74>qmark<72>style<6C> multiline<6E> instruction<6F>lexer<65>kwargs<67>return)<07>strrrr <00>boolrr)<01>formats"<22>?/tmp/pip-target-wqrk2shd/lib/python/questionary/prompts/text.py<70> __annotate__r"s<><00><00>R<1B>R<1B> <10>R<1B> <10>R<1B><12>R<1B> <0F> R<1B>
<14>E<EFBFBD>?<3F> R<1B> <14> R<1B><1A>#<23><1D>R<1B> <14>E<EFBFBD>?<3F>R<1B><12>R<1B><0E>R<1B>c <04>4aaa<06>\V.4p T;'g \R4p\V4p
SfV'd\oRVVV3Rllp \ V 3RV RV
RVRV/VBp V P
P \V44\V P4#)aOPrompt the user to enter a free text message.
This question type can be used to prompt the user for some text input.
Example:
>>> import questionary
>>> questionary.text("What's your first name?").ask()
? What's your first name? Tom
'Tom'
.. image:: ../images/text.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.
validate: Require the entered value to pass a validation. The
value can not be submitted until the validator accepts
it (e.g. to check minimum password length).
This can either be a function accepting the input and
returning a boolean, or an class reference to a
subclass of the prompt toolkit Validator class.
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.
multiline: If ``True``, multiline input will be enabled.
instruction: Write instructions for the user if needed. If ``None``
and ``multiline=True``, some instructions will appear.
lexer: Supply a valid lexer to style the answer. Leave empty to
use a simple one by default.
kwargs: Additional arguments, they will be passed to prompt toolkit.
Returns:
:class:`Question`: Question instance, ready to be prompted (using ``.ask()``).
z class:answerc<00>\<00>V^8<>dQhR\\\\3,,/#)rr)rrr)r s"r!r"<00>text.<locals>.__annotate__Us <00><00><16><16>t<EFBFBD>E<EFBFBD>#<23>s<EFBFBD>(<28>O<EFBFBD>4<>r#c<00><><<03>RS3RRPS43.pS'd#VPRRPS434V#)z class:qmarkzclass:questionz {} zclass:instruction)r <00>append)<04>resultrrrs <20><><EFBFBD>r!<00>get_prompt_tokens<6E>text.<locals>.get_prompt_tokensUsD<00><><00> <20>%<25>(<28>+;<3B>V<EFBFBD>]<5D>]<5D>7<EFBFBD>=S<>*T<>U<><06> <16> <12>M<EFBFBD>M<EFBFBD>.<2E><06> <0A> <0A>k<EFBFBD>0J<30>K<> L<><15> r#r<00> validatorrr)
rr rr r
<00>default_buffer<65>resetrr<00>app) rrrrrrrrr<00> merged_styler,r*<00>ps f&&f&&f&, r!<00>textr2s<><00><><00>v(<28><15><07>0<>L<EFBFBD> <11> 0<> 0<>[<5B><1E>0<>E<EFBFBD><1F><08>)<29>I<EFBFBD><12><1A>y<EFBFBD>+<2B> <0B><16><16> %<25><19><06><1A><06><1C><06><14> <06>
<1C> <06> <11> <06>A<EFBFBD><06><14><14><1A><1A>8<EFBFBD>G<EFBFBD>,<2C>-<2D> <13>A<EFBFBD>E<EFBFBD>E<EFBFBD>?<3F>r#)<18>typingrrrr<00>prompt_toolkit.documentr<00>prompt_toolkit.lexersrr <00>prompt_toolkit.shortcuts.promptr
<00>prompt_toolkit.stylesr <00>questionary.constantsr r <00>questionary.prompts.commonr<00>questionary.questionr<00>questionary.stylesrr2<00>r#r!<00><module>r=sR<00><01><16><17><1B><18>,<2C>'<27>-<2D>9<>'<27>9<>7<>6<>)<29>3<>
<16><18>(<28>!<21><1B>!%<25>!<21>R<1B>Rr#