prompt-toolkit/python-prompt-toolkit (prompt-toolkit)
### [`v3.0.47`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3047-2024-06-10)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.46...3.0.47)
New features:
- Allow passing exception classes for `KeyboardInterrupt` and `EOFError` in
`PromptSession`.
Fixes:
- Compute padding parameters for `Box` widget lazily.
### [`v3.0.46`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3046-2024-06-04)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.45...3.0.46)
Fixes:
- Fix pytest capsys fixture compatibility.
### [`v3.0.45`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3045-2024-05-28)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.44...3.0.45)
Fixes:
- Improve performance of `GrammarCompleter` (faster deduplication of completions).
### [`v3.0.44`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3044-2024-05-27)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.43...3.0.44)
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).
### [`v3.0.43`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3043-2023-12-13)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.42...3.0.43)
Fixes:
- Fix regression on Pypy: Don't use `ctypes.pythonapi` to restore SIGINT if not
available.
### [`v3.0.42`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3042-2023-12-12)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.41...3.0.42)
Fixes:
- 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.
### [`v3.0.41`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3041-2023-11-14)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.40...3.0.41)
Fixes:
- Fix regression regarding IPython input hook (%gui) integration.
### [`v3.0.40`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3040-2023-11-10)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.39...3.0.40)
Fixes:
- Improved Python 3.12 support (fixes event loop `DeprecationWarning`).
New features:
- Vi key bindings: `control-t` and `control-d` for indent/unindent in insert
mode.
- Insert partial suggestion when `control+right` is pressed, similar to Fish.
- Use sphinx-nefertiti theme for the docs.
### [`v3.0.39`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3039-2023-07-04)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.38...3.0.39)
Fixes:
- Fix `RuntimeError` when `__breakpointhook__` is called from another thread.
- Fix memory leak in filters usage.
- Ensure that key bindings are handled in the right context (when using
contextvars).
New features:
- Accept `in_thread` keyword in `prompt_toolkit.shortcuts.prompt()`.
- Support the `NO_COLOR` environment variable.
### [`v3.0.38`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3038-2023-02-28)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.37...3.0.38)
Fixes:
- Fix regression in filters. (Use of `WeakValueDictionary` caused filters to
not be cached).
New features:
- Use 24-bit true color now by default on Windows 10/11.
### [`v3.0.37`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3037-2023-02-21)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.36...3.0.37)
Bug fixes:
- Fix `currentThread()` deprecation warning.
- Fix memory leak in filters.
- Make VERSION tuple numeric.
New features:
- Add `.run()` method in `TelnetServer`. (To be used instead of
`.start()/.stop()`.
Breaking changes:
- Subclasses of `Filter` have to call `super()` in their `__init__`.
- Drop support for Python 3.6:
- This includes code cleanup for Python 3.6 compatibility.
- Use `get_running_loop()` instead of `get_event_loop()`.
- Use `asyncio.run()` instead of `asyncio.run_until_complete()`.
### [`v3.0.36`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3036-2022-12-06)
Fixes:
- Another Python 3.6 fix for a bug that was introduced in 3.0.34.
### [`v3.0.35`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3035-2022-12-06)
Fixes:
- Fix bug introduced in 3.0.34 for Python 3.6. Use asynccontextmanager
implementation from prompt_toolkit itself.
### [`v3.0.34`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3034-2022-12-06)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.33...3.0.34)
Fixes:
- Improve completion performance in various places.
- Improve renderer performance.
- Handle `KeyboardInterrupt` when the stacktrace of an unhandled error is
displayed.
- Use correct event loop in `Application.create_background_task()`.
- Fix `show_cursor` attribute in `ScrollablePane`.
### [`v3.0.33`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3033-2022-11-21)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.32...3.0.33)
Fixes:
- Improve termination of `Application`. Don't suppress `CancelledError`. This
fixes a race condition when an `Application` gets cancelled while we're
waiting for the background tasks to complete.
- Fixed typehint for `OneStyleAndTextTuple`.
- Small bugfix in `CombinedRegistry`. Fixed missing `@property`.
### [`v3.0.32`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3032-2022-11-03)
[Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.31...3.0.32)
Bug fixes:
- Use `DummyInput` by default in `create_input()` if `sys.stdin` does not have
a valid file descriptor. This fixes errors when `sys.stdin` is patched in
certain situations.
- Fix control-c key binding for `ProgressBar` when the progress bar was not
created from the main thread. The current code would try to kill the main
thread when control-c was pressed.
New features:
- Accept a `cancel_callback` in `ProgressBar` to specify the cancellation
behavior for when `control-c` is pressed.
- Small performance improvement in the renderer.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
==3.0.31
->==3.0.47
Release Notes
prompt-toolkit/python-prompt-toolkit (prompt-toolkit)
### [`v3.0.47`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3047-2024-06-10) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.46...3.0.47) New features: - Allow passing exception classes for `KeyboardInterrupt` and `EOFError` in `PromptSession`. Fixes: - Compute padding parameters for `Box` widget lazily. ### [`v3.0.46`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3046-2024-06-04) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.45...3.0.46) Fixes: - Fix pytest capsys fixture compatibility. ### [`v3.0.45`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3045-2024-05-28) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.44...3.0.45) Fixes: - Improve performance of `GrammarCompleter` (faster deduplication of completions). ### [`v3.0.44`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3044-2024-05-27) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.43...3.0.44) 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). ### [`v3.0.43`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3043-2023-12-13) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.42...3.0.43) Fixes: - Fix regression on Pypy: Don't use `ctypes.pythonapi` to restore SIGINT if not available. ### [`v3.0.42`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3042-2023-12-12) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.41...3.0.42) Fixes: - 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. ### [`v3.0.41`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3041-2023-11-14) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.40...3.0.41) Fixes: - Fix regression regarding IPython input hook (%gui) integration. ### [`v3.0.40`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3040-2023-11-10) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.39...3.0.40) Fixes: - Improved Python 3.12 support (fixes event loop `DeprecationWarning`). New features: - Vi key bindings: `control-t` and `control-d` for indent/unindent in insert mode. - Insert partial suggestion when `control+right` is pressed, similar to Fish. - Use sphinx-nefertiti theme for the docs. ### [`v3.0.39`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3039-2023-07-04) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.38...3.0.39) Fixes: - Fix `RuntimeError` when `__breakpointhook__` is called from another thread. - Fix memory leak in filters usage. - Ensure that key bindings are handled in the right context (when using contextvars). New features: - Accept `in_thread` keyword in `prompt_toolkit.shortcuts.prompt()`. - Support the `NO_COLOR` environment variable. ### [`v3.0.38`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3038-2023-02-28) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.37...3.0.38) Fixes: - Fix regression in filters. (Use of `WeakValueDictionary` caused filters to not be cached). New features: - Use 24-bit true color now by default on Windows 10/11. ### [`v3.0.37`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3037-2023-02-21) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.36...3.0.37) Bug fixes: - Fix `currentThread()` deprecation warning. - Fix memory leak in filters. - Make VERSION tuple numeric. New features: - Add `.run()` method in `TelnetServer`. (To be used instead of `.start()/.stop()`. Breaking changes: - Subclasses of `Filter` have to call `super()` in their `__init__`. - Drop support for Python 3.6: - This includes code cleanup for Python 3.6 compatibility. - Use `get_running_loop()` instead of `get_event_loop()`. - Use `asyncio.run()` instead of `asyncio.run_until_complete()`. ### [`v3.0.36`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3036-2022-12-06) Fixes: - Another Python 3.6 fix for a bug that was introduced in 3.0.34. ### [`v3.0.35`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3035-2022-12-06) Fixes: - Fix bug introduced in 3.0.34 for Python 3.6. Use asynccontextmanager implementation from prompt_toolkit itself. ### [`v3.0.34`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3034-2022-12-06) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.33...3.0.34) Fixes: - Improve completion performance in various places. - Improve renderer performance. - Handle `KeyboardInterrupt` when the stacktrace of an unhandled error is displayed. - Use correct event loop in `Application.create_background_task()`. - Fix `show_cursor` attribute in `ScrollablePane`. ### [`v3.0.33`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3033-2022-11-21) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.32...3.0.33) Fixes: - Improve termination of `Application`. Don't suppress `CancelledError`. This fixes a race condition when an `Application` gets cancelled while we're waiting for the background tasks to complete. - Fixed typehint for `OneStyleAndTextTuple`. - Small bugfix in `CombinedRegistry`. Fixed missing `@property`. ### [`v3.0.32`](https://togithub.com/prompt-toolkit/python-prompt-toolkit/blob/HEAD/CHANGELOG#3032-2022-11-03) [Compare Source](https://togithub.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.31...3.0.32) Bug fixes: - Use `DummyInput` by default in `create_input()` if `sys.stdin` does not have a valid file descriptor. This fixes errors when `sys.stdin` is patched in certain situations. - Fix control-c key binding for `ProgressBar` when the progress bar was not created from the main thread. The current code would try to kill the main thread when control-c was pressed. New features: - Accept a `cancel_callback` in `ProgressBar` to specify the cancellation behavior for when `control-c` is pressed. - Small performance improvement in the renderer.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.