Skip to content
Myr

Do not mention UNSET and keep the change entry small

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

authored by Kevin Deldycke · committed by Kevin Deldycke · parent b39590f · Browse files · 1 file+5 added−8 removed
This commit

State

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

Trailers

  • Address: https://github.com/pallets/click/pull/3030/files#r2289122448

Diff stats

1 file+5 added−8 removed

  • other:+5 added−8 removed

1 file+5 added−8 removed

modified:src/click/core.py+5 added-8 removed
2357 unmodified lines
23582359 1. Type cast the value using :meth:`type_cast_value`.2360 2. Check if the value is missing (see: :meth:`value_is_missing`), and raise2361 :exc:`MissingParameter` if it is required.2362 3. If a :attr:`callback` is set, call it to have the value replaced buy the2363 result of the callback.2362 3. If a :attr:`callback` is set, call it to have the value replaced by the2363 result of the callback. The callback is receiving the value as-is, which let2364 the developer decide how to handle the different cases.23652366 .. versionchanged:: 8.323662367 The :attr:`callback` is now receiving the :attr:`UNSET` sentinel if the2368 parameter is not given by the CLI user.23692370 The callback is receiving the value as-is, which let the developer decide2371 how to handle the different cases of ``None``, ``UNSET``, or any other value.2367 The :attr:`callback` gets an internal sentinel if the parameter was not set2368 by the user and no default was specified.2369 """2370 value = self.type_cast_value(ctx, value)23712372 if self.required and self.value_is_missing(value):
899 unmodified lines