There's a merged pull request on the void-packages repository python3-prompt_toolkit: disable workaround for ipython 8.18 https://github.com/void-linux/void-packages/pull/47516 Description: See: https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1811#issuecomment-1827043359 https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1821 Since the update to `prompt_toolkit-3.0.41_1` we get: ``` $ sage ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 10.1, Release Date: 2023-08-20 │ │ Using Python 3.12.0. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ /usr/lib/python3.12/site-packages/prompt_toolkit/application/application.py:988: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() ``` This is due to https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1811, which works around an issue with ipython <= 8.17. Since we already ship ipython 8.18 we can safely remove the workaround. Note that I proposed this upstream and I was asked to do a PR, the patch here is taken from https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1821. #### Testing the changes - I tested the changes in this PR: **YES** Cc: @ahesford