prompt-toolkit breaking changes
Updated December 4, 2026
On this page
Latest version 3.0.53, released July 26, 2026. Source repository
Its 3.0.53 release requires Python 3.10 or later. Python end of life dates.
- From 1.0.0 to 3.0.53: 176 breaking changes in 5 versions.
- From 0.60 to 3.0.53: 206 breaking changes in 6 versions.
prompt-toolkit 3.0.53 breaking changes
- Removed
The minimum supported Python version is now 3.10, so older Python versions are no longer supported. Users on older Python must upgrade before installing this release. github.com - Behavior changed
Return types of dialog shortcuts now include None when the dialog is cancelled. Code that assumes a non-None result must check for None. github.com - Signature changed
prompt_toolkit.completion.FuzzyWordCompleter.__init__
Was def __init__(self, words: Sequence[str] | Callable[[], Sequence[str]], meta_dict: dict[str, str] | None = None, WORD: bool = False) -> None; now def __init__(self, words: Sequence[str] | Callable[[], Sequence[str]], meta_dict... pypi.org - Signature changed
prompt_toolkit.input.create_pipe_input
Was def create_pipe_input() -> ContextManager[PipeInput]; now def create_pipe_input() -> AbstractContextManager[PipeInput]. pypi.org - Signature changed
prompt_toolkit.input.Input.attach
Was def attach(self, input_ready_callback: Callable[[], None]) -> ContextManager[None]; now def attach(self, input_ready_callback: Callable[[], None]) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.input.Input.cooked_mode
Was def cooked_mode(self) -> ContextManager[None]; now def cooked_mode(self) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.input.Input.detach
Was def detach(self) -> ContextManager[None]; now def detach(self) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.input.Input.raw_mode
Was def raw_mode(self) -> ContextManager[None]; now def raw_mode(self) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.input.win32.Win32Input.attach
Was def attach(self, input_ready_callback: Callable[[], None]) -> ContextManager[None]; now def attach(self, input_ready_callback: Callable[[], None]) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.input.win32.Win32Input.cooked_mode
Was def cooked_mode(self) -> ContextManager[None]; now def cooked_mode(self) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.input.win32.Win32Input.detach
Was def detach(self) -> ContextManager[None]; now def detach(self) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.input.win32.Win32Input.raw_mode
Was def raw_mode(self) -> ContextManager[None]; now def raw_mode(self) -> AbstractContextManager[None]. pypi.org - Signature changed
prompt_toolkit.lexers.RegexSync.from_pygments_lexer_cls
Was @classmethod def from_pygments_lexer_cls(cls, lexer_cls: PygmentsLexerCls) -> RegexSync; now @classmethod def from_pygments_lexer_cls(cls, lexer_cls: type[PygmentsLexerCls]) -> RegexSync. pypi.org - Signature changed
prompt_toolkit.shortcuts.checkboxlist_dialog
Was def checkboxlist_dialog(title: AnyFormattedText = '', text: AnyFormattedText = '', ok_text: str = 'Ok', cancel_text: str = 'Cancel', values: Sequence[tuple[_T, AnyFormattedText]] | None = None, default_values: Sequence[_T] | None =... pypi.org - Signature changed
prompt_toolkit.shortcuts.choice_input.ChoiceInput.__init__
Was def __init__(self, *, message: AnyFormattedText, options: Sequence[tuple[_T, AnyFormattedText]], default: _T | None = None, mouse_support: bool = False, style: BaseStyle | None = None, symbol: str = '>', bottom_toolbar... pypi.org - Signature changed
prompt_toolkit.shortcuts.input_dialog
Was def input_dialog(title: AnyFormattedText = '', text: AnyFormattedText = '', ok_text: str = 'OK', cancel_text: str = 'Cancel', completer: Completer | None = None, validator: Validator | None = None, password: FilterOrBool = False... pypi.org - Signature changed
prompt_toolkit.shortcuts.radiolist_dialog
Was def radiolist_dialog(title: AnyFormattedText = '', text: AnyFormattedText = '', ok_text: str = 'Ok', cancel_text: str = 'Cancel', values: Sequence[tuple[_T, AnyFormattedText]] | None = None, default: _T | None = None, style: BaseStyle... pypi.org - Signature changed
prompt_toolkit.utils.DummyContext
Was class DummyContext(ContextManager[None]); now class DummyContext(AbstractContextManager[None]). pypi.org
prompt-toolkit 3.0.52 breaking changes
- Removed
prompt_toolkit.layout.Dimension.is_zero
Dimension.is_zero was removed in prompt_toolkit 3.0.52 pypi.org - Signature changed
prompt_toolkit.input.Input.closed
Was def closed(self) -> bool; now closed: bool. pypi.org - Signature changed
prompt_toolkit.key_binding.KeyBindingsBase.bindings
Was def bindings(self) -> list[Binding]; now bindings: list[Binding]. pypi.org - Signature changed
prompt_toolkit.layout.ConditionalContainer.__init__
Was def __init__(self, content: AnyContainer, filter: FilterOrBool) -> None; now def __init__(self, content: AnyContainer, filter: FilterOrBool, alternative_content: AnyContainer | None = None) -> None. pypi.org - Signature changed
prompt_toolkit.PromptSession.__init__
Was def __init__(self, message: AnyFormattedText = '', *, multiline: FilterOrBool = False, wrap_lines: FilterOrBool = True, is_password: FilterOrBool = False, vi_mode: bool = False, editing_mode: EditingMode = EditingMode.EMACS... pypi.org - Signature changed
prompt_toolkit.PromptSession.prompt
Was def prompt(self, message: AnyFormattedText | None = None, *, editing_mode: EditingMode | None = None, refresh_interval: float | None = None, vi_mode: bool | None = None, lexer: Lexer | None = None, completer: Completer | None = None... pypi.org - Signature changed
prompt_toolkit.PromptSession.prompt_async
Was async def prompt_async(self, message: AnyFormattedText | None = None, *, editing_mode: EditingMode | None = None, refresh_interval: float | None = None, vi_mode: bool | None = None, lexer: Lexer | None = None, completer: Completer |... pypi.org - Signature changed
prompt_toolkit.shortcuts.confirm
Was def confirm(message: str = 'Confirm?', suffix: str = ' (y/n) ') -> bool; now def confirm(message: AnyFormattedText = 'Confirm?', suffix: str = ' (y/n) ') -> bool. pypi.org - Signature changed
prompt_toolkit.shortcuts.create_confirm_session
Was def create_confirm_session(message: str, suffix: str = ' (y/n) ') -> PromptSession[bool]; now def create_confirm_session(message: AnyFormattedText, suffix: str = ' (y/n) ') -> PromptSession[bool]. pypi.org - Signature changed
prompt_toolkit.shortcuts.prompt.prompt
Was def prompt(message: AnyFormattedText | None = None, *, history: History | None = None, editing_mode: EditingMode | None = None, refresh_interval: float | None = None, vi_mode: bool | None = None, lexer: Lexer | None = None, completer... pypi.org
And 5 more in this version. Sign up to see every change
prompt-toolkit 3.0.49 breaking changes
- Removed
Python 3.7 is no longer supported by this release; users on Python 3.7 must upgrade their interpreter to keep using prompt_toolkit. github.com - Signature changed
prompt_toolkit.input.win32.raw_mode.__init__
Was def __init__(self, fileno: int | None = None) -> None; now def __init__(self, fileno: int | None = None, use_win10_virtual_terminal_input: bool = False) -> None. pypi.org - Signature changed
prompt_toolkit.layout.processors.TransformationInput.__init__
Was def __init__(self, buffer_control: BufferControl, document: Document, lineno: int, source_to_display: SourceToDisplay, fragments: StyleAndTextTuples, width: int, height: int) -> None; now def __init__(self, buffer_control... pypi.org
prompt-toolkit 3.0.48 breaking changes
- Behavior changed
ModalCursorShapeConfig
The modal cursor shape config now shows an underscore cursor in Vi's replace-single mode and a beam cursor in Emacs insert mode. Code relying on the previous cursor display will see different shapes. github.com - Signature changed
prompt_toolkit.completion.FuzzyWordCompleter.__init__
Was def __init__(self, words: list[str] | Callable[[], list[str]], meta_dict: dict[str, str] | None = None, WORD: bool = False) -> None; now def __init__(self, words: Sequence[str] | Callable[[], Sequence[str]], meta_dict: dict[str, str] |... pypi.org - Signature changed
prompt_toolkit.completion.WordCompleter.__init__
Was def __init__(self, words: list[str] | Callable[[], list[str]], ignore_case: bool = False, display_dict: Mapping[str, AnyFormattedText] | None = None, meta_dict: Mapping[str, AnyFormattedText] | None = None, WORD: bool = False... pypi.org - Signature changed
prompt_toolkit.output.create_output
Was def create_output(stdout: TextIO | None = None, always_prefer_tty: bool = False) -> Output; now def create_output(stdout: TextIO | StdoutProxy | None = None, always_prefer_tty: bool = False) -> Output. pypi.org - Signature changed
prompt_toolkit.patch_stdout.StdoutProxy.original_stdout
Was original_stdout: TextIO; now original_stdout: TextIO | None. pypi.org
prompt-toolkit 3.0.0 breaking changes
- Removed
prompt_toolkit.application.NoRunningApplicationError
prompt_toolkit.application.NoRunningApplicationError was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.application.run_coroutine_in_terminal
prompt_toolkit.application.run_coroutine_in_terminal was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.auto_suggest.AutoSuggest.get_suggestion_future
AutoSuggest.get_suggestion_future was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.eventloop.AsyncGeneratorItem
prompt_toolkit.eventloop.AsyncGeneratorItem was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.eventloop.asyncio_posix
prompt_toolkit.eventloop.asyncio_posix was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.eventloop.asyncio_win32
prompt_toolkit.eventloop.asyncio_win32 was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.eventloop.base
prompt_toolkit.eventloop.base was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.eventloop.call_from_executor
prompt_toolkit.eventloop.call_from_executor was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.eventloop.consume_async_generator
prompt_toolkit.eventloop.consume_async_generator was removed in prompt_toolkit 3.0.0 pypi.org - Removed
prompt_toolkit.eventloop.context
prompt_toolkit.eventloop.context was removed in prompt_toolkit 3.0.0 pypi.org
And 125 more in this version. Sign up to see every change
prompt-toolkit 1.0.0 breaking changes
- Removed
CommandLineInterface.on_invalidate
Set the on_invalidate callback on Application instead of CommandLineInterface. github.com - Removed
KeyBindingManager.vi_mode
Editing mode is now a property of CommandLineInterface. Set editing_mode there instead of vi_mode. github.com - Removed
prompt_toolkit.contrib.ipython
prompt_toolkit.contrib.ipython was removed in prompt_toolkit 1.0.0 pypi.org - Removed
prompt_toolkit.contrib.repl
prompt_toolkit.contrib.repl was removed in prompt_toolkit 1.0.0 pypi.org - Removed
prompt_toolkit.filters.test_callable_args
prompt_toolkit.filters.test_callable_args was removed in prompt_toolkit 1.0.0 pypi.org - Removed
prompt_toolkit.focus_stack
prompt_toolkit.focus_stack was removed in prompt_toolkit 1.0.0 pypi.org - Removed
prompt_toolkit.key_binding.registry.Registry.on_handler_called
Registry.on_handler_called was removed in prompt_toolkit 1.0.0 pypi.org - Removed
prompt_toolkit.layout.highlighters
prompt_toolkit.layout.highlighters was removed in prompt_toolkit 1.0.0 pypi.org - Removed
prompt_toolkit.layout.lexers.SimpleLexer.default_token
The old name is still supported for backwards compatibility. Use token. pypi.org - Removed
prompt_toolkit.libs
prompt_toolkit.libs was removed in prompt_toolkit 1.0.0 pypi.org
And 20 more in this version. Sign up to see every change
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
prompt-toolkit 0.60 breaking changes
- Removed
prompt_toolkit.benchmark
prompt_toolkit.benchmark was removed in prompt_toolkit 0.60 pypi.org - Removed
prompt_toolkit.filters.check_signatures_are_equal
prompt_toolkit.filters.check_signatures_are_equal was removed in prompt_toolkit 0.60 pypi.org
And 3 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.