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 3a3e035 · Browse files · 1 file+21 added−3 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+21 added−3 removed

  • other:+21 added−3 removed

1 file+21 added−3 removed

modified:CHANGES.rst+21 added-3 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`2324Version 8.3.325-------------2627Released 2026-04-20
32 unmodified lines
60 :issue:`2865`61- Change :class:`ParameterSource` to an :class:`~enum.IntEnum` and reorder62 its members from most to least explicit, so values can be compared to63 check whether a parameter was explicitly provided. :issue:`2879` :pr:`3248`43- Split string values from ``default_map`` for parameters with ``nargs > 1``44 or :class:`Tuple` type, matching environment variable behavior.45 :issue:`2745` :pr:`3364`6465Version 8.3.266-------------67
1323 unmodified lines