This PR contains the minimal amount of changes required for compatibility with prompt_toolkit 3.0.
This means we also have to drop Python 2 support.
I have made sure that the examples still run.
Some remarks:
style_from_dict is now supposed to be replaced with prompt_toolkit's Style.from_dict
return_asyncio_coroutine was broken I think. I have removed this part.
The unit tests for the examples are still failing. This is due to some rendering output that was changed in prompt_toolkit. (Some trailing whitespace is not rendered for instance).
This PR contains the minimal amount of changes required for compatibility with prompt_toolkit 3.0. This means we also have to drop Python 2 support.
I have made sure that the examples still run. Some remarks: