prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.1k stars 717 forks source link

Warning thrown: Corutine was never waited #1891

Open j0hn opened 3 days ago

j0hn commented 3 days ago

Sorry if this is not the place to ask but i'm getting a warning on prompt-toolkit but being thrown using ipdb.

I'm trying to use ipdb inside a flask application and im getting the following warning on every command or after pressing the autocomplete key:

ipdb>                                                                                                                                                                                                                  
/Users/gonzalo/.pyenv/versions/3.10.11/envs/boostup/lib/python3.10/site-packages/prompt_toolkit/application/application.py:1207: RuntimeWarning: coroutine 'Application.run_async.<locals>._run_async.<locals>.auto_flush_input' was never awaited                                                                                  
  await asyncio.wait(                                                                                                                                                                                                   
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

ipdb>

I have Python 3.10.11 with prompt_toolkit==3.0.47 installed and ipdb==0.13.13

Any ideas how to get rid of this warning?