click breaking changes
Updated December 4, 2026
On this page
Latest version 8.5.1, released November 6, 2026. Source repository
Its 8.2.0 release drops Python 3.7, 3.8 and 3.9. Python end of life dates.
- From 7.0 to 8.5.1: 465 breaking changes in 11 versions.
- From 6.0 to 8.5.1: 484 breaking changes in 12 versions.
click 8.5.1 breaking changes
- Behavior changed
Argument.get_help_record
Argument.get_help_record() used to return None for an argument with no help text and now always returns a tuple. Code that checks the result for None must be updated. github.com - Signature changed
click.Argument.get_help_record
Was def get_help_record(self, ctx: Context) -> tuple[str, str] | None; now def get_help_record(self, ctx: Context) -> tuple[str, str]. pypi.org - Signature changed
click.Parameter.__init__
Was def __init__(self, param_decls: cabc.Sequence[str] | None = None, type: types.ParamType[t.Any] | t.Any | None = None, required: bool = False, default: t.Any | t.Callable[[], t.Any] | None = UNSET, callback: t.Callable[[Context... pypi.org - Signature changed
click.Path
Was class Path(ParamType[str | bytes | os.PathLike[str]]); now class Path(ParamType[_PathT_co, str | os.PathLike[str]], t.Generic[_PathT_co]). pypi.org - Signature changed
click.Path.__init__
Was def __init__(self, exists: bool = False, file_okay: bool = True, dir_okay: bool = True, writable: bool = False, readable: bool = True, resolve_path: bool = False, allow_dash: bool = False, path_type: type | None = None, executable... pypi.org - Signature changed
click.Path.coerce_path_result
Was def coerce_path_result(self, value: str | os.PathLike[str]) -> str | bytes | os.PathLike[str]; now def coerce_path_result(self, value: str | os.PathLike[str]) -> _PathT_co. pypi.org - Signature changed
click.Path.convert
Was def convert(self, value: str | os.PathLike[str], param: Parameter | None, ctx: Context | None) -> str | bytes | os.PathLike[str]; now def convert(self, value: str | os.PathLike[str], param: Parameter | None, ctx: Context | None) ->... pypi.org - Signature changed
click.Path.type
Was type: type | None; now type: type[_PathT_co] | None. pypi.org
click 8.5.0 breaking changes
- Removed
click.core.make_default_short_help
click.core.make_default_short_help was removed in click 8.5.0 pypi.org - Removed
click.core.PacifyFlushWrapper
click.core.PacifyFlushWrapper was removed in click 8.5.0 pypi.org - Removed
click.termui.LazyFile
click.termui.LazyFile was removed in click 8.5.0 pypi.org - Removed
click.termui.WIN
click.termui.WIN was removed in click 8.5.0 pypi.org - Removed
click.types.LazyFile
click.types.LazyFile was removed in click 8.5.0 pypi.org - Removed
click.types.safecall
click.types.safecall was removed in click 8.5.0 pypi.org - Removed
click.utils.auto_wrap_for_ansi
click.utils.auto_wrap_for_ansi was removed in click 8.5.0 pypi.org - Behavior changed
Supported Windows versions enable ANSI terminal styles by default, and Colorama is no longer a dependency. Output on Windows may now include escape codes. github.com - Behavior changed
Command.get_help_option_names
The help option names are now returned in the order they were declared. Code that depends on a previous ordering may change. github.com - Behavior changed
Command.to_info_dict
The help option value is stored as _click_default_help instead of help, and this name appears in to_info_dict output. Update code that reads the help key. github.com
And 24 more in this version. Sign up to see every change
click 8.4.2 breaking changes
- Removed
click.shell_completion.ShellCompleteType
click.shell_completion.ShellCompleteType was removed in click 8.4.2 pypi.org - Removed
click.types.ParamTypeValue
click.types.ParamTypeValue was removed in click 8.4.2 pypi.org - Signature changed
click.Choice
Was class Choice(ParamType[ParamTypeValue], t.Generic[ParamTypeValue]); now class Choice(ParamType[_ValueT_co], t.Generic[_ValueT_co]). pypi.org - Signature changed
click.Choice.__call__
Was def __call__(self, value: t.Any, param: Parameter | None = None, ctx: Context | None = None) -> ParamTypeValue | None; now def __call__(self, value: t.Any, param: Parameter | None = None, ctx: Context | None = None) -> _ValueT_co |... pypi.org - Signature changed
click.Choice.__init__
Was def __init__(self, choices: cabc.Iterable[ParamTypeValue], case_sensitive: bool = True) -> None; now def __init__(self, choices: cabc.Iterable[_ValueT_co], case_sensitive: bool = True) -> None. pypi.org - Signature changed
click.Choice.choices
Was choices: cabc.Sequence[ParamTypeValue]; now choices: tuple[_ValueT_co, ...]. pypi.org - Signature changed
click.Choice.convert
Was def convert(self, value: t.Any, param: Parameter | None, ctx: Context | None) -> ParamTypeValue; now def convert(self, value: t.Any, param: Parameter | None, ctx: Context | None) -> _ValueT_co. pypi.org - Signature changed
click.Choice.normalize_choice
Was def normalize_choice(self, choice: ParamTypeValue, ctx: Context | None) -> str; now def normalize_choice(self, choice: object, ctx: Context | None) -> str. pypi.org - Signature changed
click.Choice.to_info_dict
Was def to_info_dict(self) -> ChoiceInfoDict; now def to_info_dict(self) -> ChoiceInfoDict[_ValueT_co]. pypi.org - Signature changed
click.ClickException.show_color
Was show_color: bool | None; now show_color: t.Final[bool | None]. pypi.org
And 68 more in this version. Sign up to see every change
click 8.4.1 breaking changes
- Signature changed
click.echo
Was def echo(message: t.Any | None = None, file: t.IO[t.Any] | None = None, nl: bool = True, err: bool = False, color: bool | None = None) -> None; now def echo(message: object = None, file: t.IO[t.Any] | None = None, nl: bool = True, err... pypi.org
click 8.4.0 breaking changes
- Behavior changed
CliRunner
The 8.3.3 change exposing the original file descriptor via fileno() on redirected streams is reverted in default capture mode. C-level consumers that need a real fd should use capture="fd". github.com - Behavior changed
default_map
String values from default_map are now split for parameters with nargs greater than 1 or Tuple type, matching environment variable behavior. Defaults written as plain strings may now produce different values. github.com - Behavior changed
flag_value
Non-basic flag_value objects such as classes and enum members are now passed through unchanged, because type=UNPROCESSED is auto-detected. Code that relied on stringified values must set the type explicitly. github.com - Behavior changed
Parameter
Parameter is now an abstract base class and can no longer be instantiated directly. Code that creates Parameter objects directly must use a concrete subclass. github.com - Behavior changed
Parameter.name
Parameter.name is now typed as str instead of str | None. When expose_value=False, the name is set to an empty string instead of None, so code checking for None must be updated. github.com - Behavior changed
ParamType
ParamType is now a generic abstract base class parameterized by its converted value type. Custom subclasses must implement the abstract methods and may need type-parameter updates. github.com - Signature changed
click.Choice
Was class Choice(ParamType, t.Generic[ParamTypeValue]); now class Choice(ParamType[ParamTypeValue], t.Generic[ParamTypeValue]). pypi.org - Signature changed
click.Choice.to_info_dict
Was def to_info_dict(self) -> dict[str, t.Any]; now def to_info_dict(self) -> ChoiceInfoDict. pypi.org - Signature changed
click.DateTime
Was class DateTime(ParamType); now class DateTime(ParamType[datetime]). pypi.org - Signature changed
click.DateTime.convert
Was def convert(self, value: t.Any, param: Parameter | None, ctx: Context | None) -> t.Any; now def convert(self, value: t.Any, param: Parameter | None, ctx: Context | None) -> datetime. pypi.org
And 48 more in this version. Sign up to see every change
click 8.3.3 breaking changes
- Behavior changed
For boolean flags, default=True is now returned as a literal True rather than the flag_value. Code relying on the previous flag_value result may get different values. github.com - Behavior changed
Sentinel.UNSET values in a default_map now fall through to the next default source instead of being used as the value. Code that relied on them being used directly will see different defaults. github.com - Behavior changed
Pager and editor commands are now split into argument lists and no longer run with shell=True. Shell syntax in these commands may stop working and needs to be rewritten as a plain command. github.com - Behavior changed
ParameterSource
ParameterSource is now an IntEnum and its members are reordered from most to least explicit. Code that depends on the old member values or ordering may behave differently. github.com - Signature changed
click.core.ParameterSource
Was class ParameterSource(enum.Enum); now class ParameterSource(enum.IntEnum). pypi.org - Signature changed
click.prompt
Was def prompt(text: str, default: t.Any | None = None, hide_input: bool = False, confirmation_prompt: bool | str = False, type: ParamType | t.Any | None = None, value_proc: t.Callable[[str], t.Any] | None = None, prompt_suffix: str = '... pypi.org - Signature changed
click.shell_completion.ParameterSource
Was class ParameterSource(enum.Enum); now class ParameterSource(enum.IntEnum). pypi.org
Older versions
7 older versions, each with its first changes. Sign up to see every change
Show 7 older versions
click 8.3.2 breaking changes
- Removed
click.testing.StreamMixer.__del__
StreamMixer.__del__ was removed in click 8.3.2 pypi.org - Behavior changed
lookup_default
lookup_default() now returns None instead of Sentinel.UNSET for unset values. Code that checks for Sentinel.UNSET from this call must be updated. github.com
click 8.3.0 breaking changes
- Signature changed
click.BadParameter.__init__
Was def __init__(self, message: str, ctx: Context | None = None, param: Parameter | None = None, param_hint: str | None = None) -> None; now def __init__(self, message: str, ctx: Context | None = None, param: Parameter | None = None... pypi.org - Signature changed
click.Context.__exit__
Was def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, tb: TracebackType | None) -> None; now def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, tb... pypi.org
And 8 more in this version.
click 8.2.0 breaking changes
- Removed
Click 8.2.0 no longer supports Python 3.7, 3.8 or 3.9; stay on 8.1.x or upgrade the interpreter. github.com - Removed
click.core.OptionParser
click.core.OptionParser was removed in click 8.2.0 pypi.org
And 198 more in this version.
click 8.1.8 breaking changes
- Signature changed
click.open_file
Was def open_file(filename: str, mode: str = 'r', encoding: t.Optional[str] = None, errors: t.Optional[str] = 'strict', lazy: bool = False, atomic: bool = False) -> t.IO[t.Any]; now def open_file(filename: t.Union[str, os.PathLike[str]]... pypi.org
click 8.0.0 breaking changes
- Removed
click.ClickException.__unicode__
ClickException.__unicode__ was removed in click 8.0.0 pypi.org - Removed
click.core.DEPRECATED_HELP_NOTICE
click.core.DEPRECATED_HELP_NOTICE was removed in click 8.0.0 pypi.org
And 64 more in this version.
click 7.0 breaking changes
- Removed
Click 7.0 no longer supports Python 2.6 or 3.3. Code running on those versions must move to a supported Python release. github.com - Removed
click.testing.Result.output_bytes
Result.output_bytes was removed in click 7.0 pypi.org
And 17 more in this version.
click 6.0 breaking changes
- Removed
click.parser.unpack_args
click.parser.unpack_args was removed in click 6.0 pypi.org - Removed
click.utils.unpack_args
click.utils.unpack_args was removed in click 6.0 pypi.org
And 8 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.