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

Documentation doesn't reflect new input hook logic introduced since 3.0.40 #1879

Open fhars opened 3 weeks ago

fhars commented 3 weeks ago

This does no longer work, the hook must now be passed as an argument to Application.run():

https://github.com/prompt-toolkit/python-prompt-toolkit/blob/6a58564f6a201f1234733f726d866a64e95b6ba3/docs/pages/advanced_topics/input_hooks.rst?plain=1#L38

Also, none of the CHANGELOG entries mention the breaking API changes (cf. #1809 for some of the fallout).