Upgrading prompt_toolkit 0.46 to 0.47
Breaking0.46 → 0.47Breaking3New5Fixed5
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- Removes the show_line_numbers argument from BufferControl; pass a NumberedMargin instance instead.
- Makes History an abstract base class defining only an interface; the default is now InMemoryHistory.
- Introduces a Lexer abstract base class; Pygments lexers must be wrapped in PygmentsLexer.
Must act 3 items need code or config changes
What you must change
Breaking3
Removes the show_line_numbers argument from BufferControl; pass a NumberedMargin instance instead.
BufferControlshow_line_numbersNumberedMarginMakes History an abstract base class defining only an interface; the default is now InMemoryHistory.
HistoryInMemoryHistoryIntroduces a Lexer abstract base class; Pygments lexers must be wrapped in PygmentsLexer.
LexerPygmentsLexerprompt_toolkit.shortcuts