Skip to content
Myr

Put changes in 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 4e4c7a6 · Browse files · 1 file+26 added−5 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+26 added−5 removed

  • other:+26 added−5 removed

1 file+26 added−5 removed

modified:CHANGES.rst+26 added-5 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`2829Version 8.3.330-------------3132Unreleased
32 unmodified lines
65 :issue:`2865`66- Change :class:`ParameterSource` to an :class:`~enum.IntEnum` and reorder67 its members from most to least explicit, so values can be compared to68 check whether a parameter was explicitly provided. :issue:`2879` :pr:`3248`43- Auto-detect ``type=UNPROCESSED`` for ``flag_value`` of non-basic types44 (not ``str``, ``int``, ``float``, or ``bool``), so programmer-provided45 Python objects like classes and enum members are passed through unchanged46 instead of being stringified. Previously ``type=click.UNPROCESSED`` had47 to be set explicitly. :issue:`2012` :pr:`3363`6970Version 8.3.271-------------72
1323 unmodified lines