Skip to content
Open
Show file tree
Hide file tree
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: 6 additions & 0 deletions docs/pages/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
Changelog
*********

2.1.1 (2025-08-28)
###################

* Fixed compatibility with ``prompt_toolkit`` 3.0.52. Previously that version raised ability
``AttributeError: 'VSplit' object has no attribute 'content'`` error.

2.1.0 (2024-12-29)
###################

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ warn_unused_ignores = true

[tool.poetry]
name = "questionary"
version = "2.1.0"
version = "2.1.1"
description = "Python library to build pretty command line user prompts ⭐️"
authors = [ "Tom Bocklisch <tombocklisch@gmail.com>",]
maintainers = [ "Tom Bocklisch <tombocklisch@gmail.com>", "Kian Cross <kian@kiancross.co.uk>"]
Expand Down
8 changes: 7 additions & 1 deletion questionary/prompts/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def select(
show_selected: bool = False,
show_description: bool = True,
instruction: Optional[str] = None,
initial_choice: Optional[str] = None,
**kwargs: Any,
) -> Question:
"""A list of items to select **one** option from.
Expand Down Expand Up @@ -162,6 +163,11 @@ def select(

merged_style = merge_styles_default([style])

if initial_choice is not None:
ic_initial_choice = initial_choice
else:
ic_initial_choice = default

ic = InquirerControl(
choices,
default,
Expand All @@ -171,7 +177,7 @@ def select(
show_selected=show_selected,
show_description=show_description,
use_arrow_keys=use_arrow_keys,
initial_choice=default,
initial_choice=ic_initial_choice,
)

def get_prompt_tokens():
Expand Down
2 changes: 1 addition & 1 deletion questionary/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.1.0"
__version__ = "2.1.1"