Skip to content

Upgrading click 4 to 5

Breaking4.1 → 5.1Breaking2New3Changed4Fixed3Other1

BreakingUpgrade verdict

2 breaking changes.

  • Old features that were already marked as deprecated have been removed.
  • When opening an atomic file, only write mode is allowed now.
2 items need code or config changes
Breaking2
Removes various deprecated functionality.
Atomic files now only accept the w mode.
AtomicFile

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

  • added: export get_current_context
  • removed: field Context.invoked_subcommands
  • added: method Context.scope(cleanup=…)
  • added: property Context.meta
  • removed: function add_subsequent_indent(text, subsequent_indent)
  • added: function get_current_context(silent=…)
  • added: function pop_context()
  • added: function push_context(ctx)
  • added: function resolve_color_default(color=…)