Skip to content
Myr

Move changes to correct section

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Rowlando13 · committed by GitHub · parent 1241aba · Browse files · 1 file+30 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+30 added−4 removed

  • other:+30 added−4 removed

1 file+30 added−4 removed

modified:CHANGES.rst+30 added-4 removed
1.. currentmodule:: click23Version 8.4.04-------------56Unreleased78- :class:`ParamType` typing improvements. :pr:`3371`910 - :class:`ParamType` is now a generic abstract base class,11 parameterized by its converted value type.12 - :meth:`~ParamType.convert` return types are narrowed on all13 concrete types (``str`` for :class:`STRING`, ``int`` for14 :class:`INT`, etc.).15 - :meth:`~ParamType.to_info_dict` returns specific16 :class:`~typing.TypedDict` subclasses instead of17 ``dict[str, Any]``.18 - :class:`CompositeParamType` and the number-range base are now19 generic with abstract methods.20- Split string values from ``default_map`` for parameters with ``nargs > 1``21 or :class:`Tuple` type, matching environment variable behavior.22 :issue:`2745` :pr:`3364`23- Auto-detect ``type=UNPROCESSED`` for ``flag_value`` of non-basic types24 (not ``str``, ``int``, ``float``, or ``bool``), so programmer-provided25 Python objects like classes and enum members are passed through unchanged26 instead of being stringified. Previously ``type=click.UNPROCESSED`` had27 to be set explicitly. :issue:`2012` :pr:`3363`28- The error hint now uses :meth:`Command.get_help_option_names` to pick29 non-shadowed help option names, so ``Try '... -h'`` no longer points to a30 subcommand option that shadows ``-h``. All surviving names are shown31 (``-h/--help``). :issue:`2790` :pr:`3208`3233Version 8.3.334-------------3536Unreleased
32 unmodified lines
69 :issue:`2865`70- Change :class:`ParameterSource` to an :class:`~enum.IntEnum` and reorder71 its members from most to least explicit, so values can be compared to72 check whether a parameter was explicitly provided. :issue:`2879` :pr:`3248`43- The error hint now uses :meth:`Command.get_help_option_names` to pick44 non-shadowed help option names, so ``Try '... -h'`` no longer points to a45 subcommand option that shadows ``-h``. All surviving names are shown46 (``-h/--help``). :issue:`2790` :pr:`3208`7374Version 8.3.275-------------76
1323 unmodified lines