Skip to content

Commit dceaf86

Browse files
v.garkaviyjonathanslenders
v.garkaviy
authored andcommitted
in_thread keyword is passed through 'prompt' shortcut
1 parent 5b3dd6d commit dceaf86

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ docs/_build
4545
# pycharm metadata
4646
.idea
4747

48+
# vscode metadata
49+
.vscode
50+
4851
# virtualenvs
4952
.venv*

src/prompt_toolkit/shortcuts/prompt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,7 @@ def prompt(
13931393
enable_open_in_editor: FilterOrBool | None = None,
13941394
tempfile_suffix: str | Callable[[], str] | None = None,
13951395
tempfile: str | Callable[[], str] | None = None,
1396+
in_thread: bool = False,
13961397
# Following arguments are specific to the current `prompt()` call.
13971398
default: str = "",
13981399
accept_default: bool = False,
@@ -1447,6 +1448,7 @@ def prompt(
14471448
default=default,
14481449
accept_default=accept_default,
14491450
pre_run=pre_run,
1451+
in_thread=in_thread,
14501452
)
14511453

14521454

0 commit comments

Comments
 (0)