Skip to content

Upgrading prompt_toolkit 0.4 to 0.5

Unknown0.4 → 0.5

UnknownUpgrade verdict

DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • removed: export Abort
  • removed: export Code
  • removed: export Exit
  • removed: export History
  • removed: export InputStream
  • removed: export InputStreamHandler
  • removed: export Line
  • removed: export Prompt
  • removed: export Renderer
  • removed: export ReturnInput
  • removed: export call_on_sigwinch
  • removed: export raw_mode
  • changed: method CommandLine.read_input() → method CommandLine.read_input(initial_value=…, on_abort=…, on_exit=…)
  • added: class AbortAction
  • added: field AbortAction.IGNORE
  • added: field AbortAction.RAISE_EXCEPTION
  • added: field AbortAction.RETRY
  • added: field AbortAction.RETURN_NONE
  • added: field CommandLine.enable_concurency
  • added: method CommandLine.on_input_timeout(code_obj)
  • added: method CommandLine.request_redraw()
  • removed: class Completion(object)
  • removed: constructor Completion(display=…, suffix=…)
  • added: method CodeBase.validate()
  • removed: field PythonCommandLine.style_cls
  • changed: constructor PythonCommandLine(globals=…, locals=…, vi_mode=…, stdin=…, stdout=…, history_filename=…) → constructor PythonCommandLine(globals=…, locals=…, vi_mode=…, stdin=…, stdout=…, history_filename=…, style_cls=…)
  • changed: function embed(globals=…, locals=…, vi_mode=…, history_filename=…) → function embed(globals=…, locals=…, vi_mode=…, history_filename=…, no_colors=…)
  • added: field PythonCommandLine.enable_concurency
  • added: method PythonCommandLine.on_input_timeout(code_obj)
  • added: function get_input(message, raise_exception_on_abort=…, multiline=…)
  • added: method Document.translate_row_col_to_index(row, col)
  • removed: method InputStreamHandler.meta_enter()
  • changed: method Line.reset() → method Line.reset(initial_value=…)
  • added: field Line.is_multiline
  • added: method Line.create_code_obj()
  • removed: class Dynamic(object)
  • removed: constructor Dynamic()
  • removed: method Dynamic.get_tokens()
  • removed: method Dynamic.in_thread(update_callback)
  • added: field Prompt.default_prompt_text
  • changed: constructor RenderContext(prompt, code_obj, accept=…, abort=…, highlight_regions=…, complete_state=…) → constructor RenderContext(prompt, code_obj, accept=…, abort=…, highlight_regions=…, complete_state=…, validation_error=…)