Skip to content

Upgrading prompt_toolkit 0.46 to 0.47

Breaking0.46 → 0.47Breaking3New5Fixed5

BreakingUpgrade verdict

3 breaking changes.

  • 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.
3 items need code or config changes
Breaking3
Removes the show_line_numbers argument from BufferControl; pass a NumberedMargin instance instead.
BufferControlshow_line_numbersNumberedMargin
Makes History an abstract base class defining only an interface; the default is now InMemoryHistory.
HistoryInMemoryHistory
Introduces a Lexer abstract base class; Pygments lexers must be wrapped in PygmentsLexer.
LexerPygmentsLexerprompt_toolkit.shortcuts