Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inputhook implementation to be compatible with asyncio.run(). #1810

Merged
merged 1 commit into from
Nov 13, 2023

Commits on Nov 13, 2023

  1. Fix inputhook implementation to be compatible with asyncio.run().

    `asyncio.get_event_loop()` got deprecated. So we can't install an event loop
    with inputhook upfront and then use in in prompt_toolkit. Instead, we can take
    the inputhook as an argument in `Application.run()` and `PromptSession.run()`,
    and install it in the event loop that we create ourselves using
    `asyncio.run()`.
    jonathanslenders committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    606033a View commit details
    Browse the repository at this point in the history