aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-28 14:46:28 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-28 14:46:28 +0300
commit86568a9d1590ec529af95a7e16fb889b09162ed9 (patch)
treedbad39b76dcca72fd5551a0f782f6ad2a2bcd199 /contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts
parente6eedf7496d3741c2226a52ac25b12851b331112 (diff)
downloadydb-86568a9d1590ec529af95a7e16fb889b09162ed9.tar.gz
intermediate changes
ref:8cc96053e249b790770c75de97ccbea86351cff2
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/dialogs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/dialogs.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/dialogs.py
index 9140f86ab3..eacb05a00c 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/dialogs.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/dialogs.py
@@ -109,6 +109,7 @@ def input_dialog(
validator: Optional[Validator] = None,
password: FilterOrBool = False,
style: Optional[BaseStyle] = None,
+ default: str = "",
) -> Application[str]:
"""
Display a text input box.
@@ -126,6 +127,7 @@ def input_dialog(
cancel_button = Button(text=cancel_text, handler=_return_none)
textfield = TextArea(
+ text=default,
multiline=False,
password=password,
completer=completer,