Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/prompt_toolkit/shortcuts/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def input_dialog(
password: FilterOrBool = False,
style: BaseStyle | None = None,
default: str = "",
) -> Application[str]:
) -> Application[str | None]:
"""
Display a text input box.
Return the given text, or None when cancelled.
Expand Down Expand Up @@ -182,7 +182,7 @@ def radiolist_dialog(
values: Sequence[tuple[_T, AnyFormattedText]] | None = None,
default: _T | None = None,
style: BaseStyle | None = None,
) -> Application[_T]:
) -> Application[_T | None]:
"""
Display a simple list of element the user can choose amongst.

Expand Down Expand Up @@ -221,7 +221,7 @@ def checkboxlist_dialog(
values: Sequence[tuple[_T, AnyFormattedText]] | None = None,
default_values: Sequence[_T] | None = None,
style: BaseStyle | None = None,
) -> Application[list[_T]]:
) -> Application[list[_T] | None]:
"""
Display a simple list of element the user can choose multiple values amongst.

Expand Down
Loading