Change8

8.2.2

📦 click
🐛 6 fixes🔧 4 symbols

Summary

Click 8.2.2 is a bug‑fix release that resolves several issues with flag option handling, exception typing, Enum defaults, Zsh completion, envvar hints, and a race condition in StreamMixer, without introducing breaking changes.

🐛 Bug Fixes

  • Fixed reconciliation of `default`, `flag_value` and `type` parameters for flag options, and corrected parsing and normalization of environment variables.
  • Fixed typing issue in `BadParameter` and `MissingParameter` exceptions for the `param_hint` parameter, allowing sequences of strings.
  • Used the value of `Enum` choices to render their default value in the help screen.
  • Fixed Z shell (zsh) completion for items containing colons.
  • Did not include envvar in error hint when not configured.
  • Fixed a rare race condition in `click.testing.StreamMixer` finalization that could raise `ValueError` on close in multi‑threaded test sessions.

🔧 Affected Symbols

click.Optionclick.BadParameterclick.MissingParameterclick.testing.StreamMixer