pypi / prompt-toolkit
prompt-toolkit
What changed in prompt-toolkit 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
2 breaking1 new APIs and options1 performance7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initprompt-toolkit 311 changes
Breaking changes 2
Adds support for Python 3.14 and 3.15 and sets the minimum Python version to 3.10.
Sets a missing minimum requirement for wcwidth.
New APIs and options 1
Allows specifying show_numbers in ChoiceInput.
Performance 1
Loads __version__ lazily.
Fixes and other changes 7
Treats OSError from add_reader as EOFError on macOS kqueue.
Updates return types to include None when a dialog shortcut is cancelled.
Handles surrogate pairs when storing strings in file history.
Updates the meta_dict type hint to match WordCompleter.
Fixes the behavior of get_word_before_cursor.
Handles ASCII decode errors when decoding terminal types in the telnet protocol.
Fixes the 6x6x6 color cube range and adds missing grayscale shades 232 and 254–255.