Skip to content

Releases: prompt-toolkit/python-prompt-toolkit

3.0.48

25 Sep 10:22
435bd99
Compare
Choose a tag to compare

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

10 Jun 11:06
Compare
Choose a tag to compare

New features:

  • Allow passing exception classes for KeyboardInterrupt and EOFError in PromptSession.

Fixes:

  • Compute padding parameters for Box widget lazily.

3.0.46

04 Jun 14:50
Compare
Choose a tag to compare

Fixes:

  • Fix pytest capsys fixture compatibility.

3.0.45

28 May 11:15
Compare
Choose a tag to compare

Fixes:

  • Improve performance of GrammarCompleter (faster deduplication of completions).

3.0.44

27 May 20:36
Compare
Choose a tag to compare

New features:

  • Accept os.PathLike in FileHistory (typing fix).

Fixes:

  • Fix memory leak in filters.
  • Improve performance of progress bar formatters.
  • Fix compatibility when a SIGINT handler is installed by non-Python (Rust, C).
  • Limit number of completions in buffer to 10k by default (for performance).

3.0.43

13 Dec 09:51
Compare
Choose a tag to compare

Fixes regression from 3.0.42:

  • Fix regression on Pypy: Don't use ctypes.pythonapi to restore SIGINT if not available.

Other changes from 3.0.42:

  • Fix line wrapping in patch_stdout on Windows.
  • Make formatted_text.split_lines() accept an iterable instead of lists only.
  • Disable the IPython workaround (from 3.0.41) for IPython >= 8.18.
  • Restore signal.SIGINT handler between prompts