pypi click 8.5.1

2 hours ago

This is the Click 8.5.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.

PyPI: https://pypi.org/project/click/8.5.1/
Changes: https://click.palletsprojects.com/page/changes/#version-8-5-1
Milestone: https://github.com/pallets/click/milestone/66

  • Fix copy.deepcopy() and pickle on a Parameter, Option or Command. #3805
  • A KeyboardInterrupt arriving while Command.main() reports an abort or an error,
    or while it exits, no longer escapes as an unhandled traceback. The command still
    exits with the intended code; only the message may be lost. #3802
  • Add Option.get_help_spec(), which returns the option's left help
    column even when the option is hidden. Option.get_help_record() still
    returns None for hidden options, so help screens are unchanged. #3821
  • The Positional arguments help section lists every argument of the command,
    not only the documented ones. An argument with no help gets an empty
    description, the same way an option with no help does. #3860
  • Argument.get_help_record() always returns a tuple. It used to return
    None for an argument with no help. #3860
  • Document which types are inferred from default, and what an unrecognized
    type callable does to a command-line value. #3036 #3808
  • path_type narrows the converted value's type for convert and prompt.
    #3822 #3858
  • Parameter accepts a new help argument, and Option and Argument
    inherit it. Parameter.to_info_dict() now reports help for every kind of parameter.
    #3861
  • A command's short help no longer stops at an abbreviation such as vs. or e.g.
    inside the first sentence. A period ends the sentence only when it closes the text
    or the next word does not start in lowercase. #3865
  • With show_envvar=True, an option's error message now prints all variables of an
    envvar sequence instead of the repr of the sequence. #3884
  • An empty envvar, such as [] or "", shows the same help and error message as
    no envvar when show_envvar=True. The help screen used to show [env var: ].
    #3884
  • Align command's deprecated help text to options and arguments: do not translate the
    command's own help text, only the (DEPRECATED) label. #3901

Don't miss a new click release

NewReleases is sending notifications on new releases.