Skip to content

Commit

Permalink
in_thread keyword is passed through 'prompt' shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
v.garkaviy authored and jonathanslenders committed Jul 4, 2023
1 parent 5b3dd6d commit dceaf86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ docs/_build
# pycharm metadata
.idea

# vscode metadata
.vscode

# virtualenvs
.venv*
2 changes: 2 additions & 0 deletions src/prompt_toolkit/shortcuts/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ def prompt(
enable_open_in_editor: FilterOrBool | None = None,
tempfile_suffix: str | Callable[[], str] | None = None,
tempfile: str | Callable[[], str] | None = None,
in_thread: bool = False,
# Following arguments are specific to the current `prompt()` call.
default: str = "",
accept_default: bool = False,
Expand Down Expand Up @@ -1447,6 +1448,7 @@ def prompt(
default=default,
accept_default=accept_default,
pre_run=pre_run,
in_thread=in_thread,
)


Expand Down

0 comments on commit dceaf86

Please sign in to comment.