Bumps click from 8.4.2 to 8.5.0.
Release notes
Sourced from click's releases.
8.5.0
This is the Click 8.5.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecation, or introduce potentially breaking changes.
We encourage everyone to upgrade. You can read more about our Version Support Policy on our website.
PyPI: https://pypi.org/project/click/8.5.0/
Changes: https://click.palletsprojects.com/page/changes/#version-8-5-0
Milestone https://github.com/pallets/click/milestone/33
- Add built-in shell completion support for PowerShell (Windows PowerShell
5.1+ and pwsh 7+) alongside the existing
bash, zsh, and fish
completers. Use _FOO_BAR_COMPLETE=powershell_source foo-bar to generate
the completion script. #2672 #3637
- Supported versions of Windows enable ANSI terminal styles by default.
Colorama is no longer a dependency and is not used. #2986 #3505
- {class}
Argument accepts a help parameter, and help output includes
a Positional arguments section when argument help is available. #2983 #3473
confirm() and prompt() strip ANSI color and style codes from the
prompt when the output stream does not support them, matching echo().
This stripping was lost in 8.4.0 when #2969 began writing the
prompt with input() directly. #3572 #3653
- {class}
Path with allow_dash=True no longer triggers a BytesWarning,
an error under python -bb, when checking a value against the -
convention. #2877 #3642
- Add {func}
custom_version_option, a --version option whose output is
produced by a callback, covering cases {func}version_option intentionally
does not. The feature set of {func}version_option is now frozen; see
[discussion #3527](https://github.com/pallets/click/discussions/3527). #3581
style() and secho() no longer silently drop the 256-color index 0
(black) passed as fg or bg, and now validate color arguments. Invalid
colors raise a ValueError instead of a TypeError. #3677
- The automatic help option stores its value under the reserved name
_click_default_help instead of help, so a parameter named help no
longer breaks parsing. The new name is visible in
{meth}Command.to_info_dict output. Parameters that overwrite each other's
value trigger a warning: an argument sharing its name with another
parameter, or any parameter claiming the reserved name. Options may still
share a name to compete for the same value (feature switches).
#2819 #3678
unstyle and the ANSI handling behind help-text wrapping now strip the full
CSI escape-sequence grammar. #3681
- Streamline
Option flag handling: the flag-kind, type, lazy-default and
validation steps in Option.__init__ move into focused helpers, and
flag_value and default keep their unset sentinel at construction
(resolved lazily on read) so is UNSET reliably tells a user-supplied value
from an auto-derived one. Runtime behavior is unchanged, but
{meth}Parameter.to_info_dict now resolves default=True on a feature
switch to its flag_value, matching what the function receives at call
... (truncated)
Changelog
Sourced from click's changelog.
Version 8.5.0
Released 2026年08月24日
- Add built-in shell completion support for PowerShell (Windows PowerShell
5.1+ and pwsh 7+) alongside the existing
bash, zsh, and fish
completers. Use _FOO_BAR_COMPLETE=powershell_source foo-bar to generate
the completion script. {issue}2672 {pr}3637
- Supported versions of Windows enable ANSI terminal styles by default.
Colorama is no longer a dependency and is not used. {issue}
2986 {pr}3505
- {class}
Argument accepts a help parameter, and help output includes
a Positional arguments section when argument help is available. {issue}2983 {pr}3473
confirm() and prompt() strip ANSI color and style codes from the
prompt when the output stream does not support them, matching echo().
This stripping was lost in 8.4.0 when {pr}2969 began writing the
prompt with input() directly. {issue}3572 {pr}3653
- Fix test failures when using pytest >= 9.1. {pr}
3656
- {class}
Path with allow_dash=True no longer triggers a BytesWarning,
an error under python -bb, when checking a value against the -
convention. {issue}2877 {pr}3642
- Add {func}
custom_version_option, a --version option whose output is
produced by a callback, covering cases {func}version_option intentionally
does not. The feature set of {func}version_option is now frozen; see
[discussion #3527](https://github.com/pallets/click/discussions/3527). {pr}3581
style() and secho() no longer silently drop the 256-color index 0
(black) passed as fg or bg, and now validate color arguments. Invalid
colors raise a ValueError instead of a TypeError. {pr}3677
- The automatic help option stores its value under the reserved name
_click_default_help instead of help, so a parameter named help no
longer breaks parsing. The new name is visible in
{meth}Command.to_info_dict output. Parameters that overwrite each other's
value trigger a warning: an argument sharing its name with another
parameter, or any parameter claiming the reserved name. Options may still
share a name to compete for the same value (feature switches).
{issue}2819 {pr}3678
unstyle and the ANSI handling behind help-text wrapping now strip the full
CSI escape-sequence grammar. {pr}3681
- Streamline
Option flag handling: the flag-kind, type, lazy-default and
validation steps in Option.__init__ move into focused helpers, and
flag_value and default keep their unset sentinel at construction
(resolved lazily on read) so is UNSET reliably tells a user-supplied value
from an auto-derived one. Runtime behavior is unchanged, but
{meth}Parameter.to_info_dict now resolves default=True on a feature
switch to its flag_value, matching what the function receives at call
time. {pr}3641
- {func}
get_binary_stream and {func}get_text_stream are deprecated and
will be removed in Click 9.0. {issue}3481 {pr}3695
- The following
click.utils names were never intentionally public and are
now private (_-prefixed). The old names remain available with a
DeprecationWarning until Click 9.0: LazyFile, KeepOpenFile,
... (truncated)
Commits
8b19813 Release version 8.5.0
2c8cd3a Add FAQ entry about UnicodeEncodeError on Windows (#3778)
131c86a Add FAQ entry about UnicodeEncodeError on Windows
e1fd594 Add support of pathlib.Path to edit (#3781)
a1d8785 Add support of pathlib.Path to edit
2103e15 Forward all user's parameters set in PAGER and improve flag detection (#3777)
a6256bf Forwards all user's parameters set in PAGER
61b69e9 Resolve the pager command once, in _pager_contextmanager (#3776)
9835b0f Resolve the pager command once, in _pager_contextmanager
f36d58b Refactor pager stream handling (#3767)
- Additional commits viewable in compare view
Dependabot compatibility score
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps click from 8.4.2 to 8.5.0.
Release notes
Sourced from click's releases.
... (truncated)
Changelog
Sourced from click's changelog.
... (truncated)
Commits
8b19813Release version 8.5.02c8cd3aAdd FAQ entry aboutUnicodeEncodeErroron Windows (#3778)131c86aAdd FAQ entry aboutUnicodeEncodeErroron Windowse1fd594Add support ofpathlib.Pathtoedit(#3781)a1d8785Add support ofpathlib.Pathtoedit2103e15Forward all user's parameters set inPAGERand improve flag detection (#3777)a6256bfForwards all user's parameters set inPAGER61b69e9Resolve the pager command once, in_pager_contextmanager(#3776)9835b0fResolve the pager command once, in_pager_contextmanagerf36d58bRefactor pager stream handling (#3767)Dependabot compatibility score
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)