Skip to content
Myr

Do not mention UNSET

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

Refs: https://github.com/pallets/click/pull/3030#discussion_r2288957781

authored by Kevin Deldycke · committed by Kevin Deldycke · parent 472bf38 · Browse files · 1 file+2 added−2 removed
This commit

State

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

Trailers

  • Refs:
  • https: //github.com/pallets/click/pull/3030#discussion_r2288957781

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/click/core.py+2 added-2 removed
2142 unmodified lines
2143 Use :meth:`click.Context.to_info_dict` to traverse the entire2144 CLI structure.21452146 .. versionchanged:: 8.3.02147 Returns ``None`` for the :attr:`default` if it is :attr:`UNSET`.2147 Returns ``None`` for the :attr:`default` if it was not set.21482149 .. versionadded:: 8.02150 """2151 return {
604 unmodified lines
27562757 def to_info_dict(self) -> dict[str, t.Any]:2758 """2759 .. versionchanged:: 8.3.02760 Returns ``None`` for the :attr:`flag_value` if it is :attr:`UNSET`.2760 Returns ``None`` for the :attr:`flag_value` if it was not set.2761 """2762 info_dict = super().to_info_dict()2763 info_dict.update(2764 help=self.help,
520 unmodified lines