Prompt-toolkit

Latest version: v3.0.50

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 22

3.0.50

------------------

Fixes:
- Fixes non user impacting regression on the output rendering. Don't render
cursor hide/show ANSI escape codes if not needed.

3.0.49

------------------

New features:
- On Windows, use virtual terminal input when available.
- Support for multiline suggestions.

Fixes:
- Handle `InvalidStateError` during termination when using
`run_in_terminal`/`patch_stdout`. This can happen in some cases during
cancellation, probably when using anyio.
- Fix cursor that remains in hidden state when the application exits. This can
happen when the application doesn't show the cursor and `erase_when_done` is
being used.

Breaking changes:
- Drop support for Python 3.7:

3.0.48

------------------

Fixes:
- Typing improvements:
* Add `overload` to `contrib.regular_languages.compiler.Variables.get`.
* Use `Sequence` instead of `list` for `words` argument in completers.
- Improve `ModalCursorShapeConfig`:
* Display an "underscore" cursor in Vi's "replace single" mode, like
"replace" mode.
* Display an "beam" cursor in Emacs (insert) mode.

3.0.47

------------------

New features:
- Allow passing exception classes for `KeyboardInterrupt` and `EOFError` in
`PromptSession`.

Fixes:
- Compute padding parameters for `Box` widget lazily.

3.0.46

------------------

Fixes:
- Fix pytest capsys fixture compatibility.

3.0.45

------------------

Fixes:
- Improve performance of `GrammarCompleter` (faster deduplication of completions).

Page 1 of 22

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.