blurg / sauron-engine

One engine to rule them all
MIT License
63 stars 9 forks source link

Update prompt-toolkit to 3.0.19 #433

Closed pyup-bot closed 3 years ago

pyup-bot commented 3 years ago

This PR updates prompt-toolkit from 3.0.3 to 3.0.19.

Changelog ### 3.0.19 ``` ------------------ Fixes: - Make the flush method of the vt100 output implementation re-entrant (fixes an issue when using aiogevent). - Fix off-by-one in `FormattedTextControl` mouse logic. - Run `print_container` always in a thread (avoid interfering with possible event loop). - Make sphinx autodoc generation platform agnostic (don't import Windows stuff when generating Sphinx docs). ``` ### 3.0.18 ``` ------------------ New features: - Added `in_thread` parameter to `Application.run`. This is useful for running an application in a background thread, while the main thread blocks. This way, we are sure not to interfere with an event loop in the current thread. (This simplifies some code in ptpython and fixes an issue regarding leaking file descriptors due to not closing the event loop that was created in this background thread.) ``` ### 3.0.17 ``` ------------------ Fixes: - Fix leaking file descriptors due to not closing the asyncio event loop after reading input in a thread. - Fix race condition during retrieval of signatures. ``` ### 3.0.16 ``` ------------------ (Commit 7f619e was missing in previous release.) Fixes: - Several fixes to the completion code: * Give dictionary completions priority over path completions. * Always call non-fuzzy completer after fuzzy completer to prevent that some completions were missed out if the fuzzy completer doesn't find them. ``` ### 3.0.15 ``` ------------------ New features: - When pressing control-w, only delete characters until a punctuation. Fixes: - Fix `AttributeError` during retrieval of signatures with type annotations. ``` ### 3.0.14 ``` ------------------ New features: - Display of signature and completion drop down together. - If `DictionaryCompleter` is enabled, also retrieve signatures when Jedi fails, using the same logic. - List function parameters first and private attributes at the end in the completion menu. - Cleanup of the completion code. Fixes: - Handle exceptions raised when `repr()` is called. - Fix leakage of `exc_info` from eval to exec call. - Fix handling of `KeyboardInterrupt` in REPL during evaluation of `__repr__`. - Fix style for signature toolbar. - Hide signature when sidebar is visible. ``` ### 3.0.13 ``` ------------------ New features: - Added 'print all' option to pager. - Improve handling of indented code: * Allow multiline input to be indented as a whole (we will unindent before executing). * Correctly visualize tabs (instead of ^I, which happens when pasted in bracketed paste). Fixes: - Fix line ending bug in pager. ``` ### 3.0.12 ``` ------------------ New features: - Expose a `get_ptpython` function in the global namespace, to get programmatic access to the REPL. - Expose `embed()` at the top level of the package. Make it possible to do `from ptpython import embed`. Fixes: - Properly handle exceptions when trying to access `__pt_repr__`. - Properly handle `SystemExit`. ``` ### 3.0.11 ``` ------------------ New features: - Add support for top-level await. - Refactoring of event loop usage: * The ptpython input UI will now run in a separate thread. This makes it possible to properly embed ptpython in an asyncio application, without having to deal with nested event loops (which asyncio does not support). * The "eval" part doesn't anymore take place within a ptpython coroutine, so it can spawn its own loop if needed. This also fixes `asyncio.run()` usage in the REPL, which was broken before. - Added syntax highlighting and autocompletion for !-style system commands. Fixes: - Remove unexpected additional line after output. - Fix system prompt. Accept !-style inputs again. - Don't execute PYTHONSTARTUP when -i flag was given. ``` ### 3.0.10 ``` ------------------ Fixes: - Do dictionary completion on Sequence and Mapping objects (from collections.abc). Note that dictionary completion is still turned off by default. ``` ### 3.0.9 ``` ----------------- New features: - Allow replacing `PythonInput.completer` at runtime (useful for tools build on top of ptpython). - Show REPL title in pager. ``` ### 3.0.8 ``` ----------------- New features: - Optional output formatting using Black. - Optional pager for displaying outputs that don't fit on the screen. - Added --light-bg and --dark-bg flags to automatically optimize the brightness of the colors according to the terminal background. - Addd `PTPYTHON_CONFIG_HOME` for explicitely setting the config directory. - Show completion suffixes (like '(' for functions). Fixes: - Fix dictionary completion on Pandas objects. - Stop using deprecated Jedi functions. ``` ### 3.0.7 ``` ----------------- New features: - Option to show/hide private attributes during a completion - Added `insert_blank_line_after_input` option similar to `insert_blank_line_after_output`. Fixes: - Fixed some formatting issues of `__pt_repr__`. - Abbreviate completion meta information for dictionary completer if needed. ``` ### 3.0.6 ``` ----------------- New features: - (Experimental) support for `__pt_repr__` methods. If objects implement this method, this will be used to print the result in the REPL instead of the normal `__repr__`. - Added py.typed file, to enable type checking for applications that are embedding ptpython. ``` ### 3.0.5 ``` ----------------- Fixes: - Handle bug in dictionary completion when numeric keys are used. ``` ### 3.0.4 ``` ----------------- New features: - Allow leading whitespace before single line expressions. - Show full syntax error in validator. - Added `vi_start_in_navigation_mode` and `vi_keep_last_used_mode` options. Fixes: - Improved dictionary completion: handle keys that contain spaces and don't recognize numbers as variable names. - Fix in exit confirmation. ```
Links - PyPI: https://pypi.org/project/prompt-toolkit - Changelog: https://pyup.io/changelogs/prompt-toolkit/ - Repo: https://github.com/prompt-toolkit/python-prompt-toolkit
sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information