From 790ebd665ce03f25990e037b3e9f16951a2723aa Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Fri, 6 Mar 2026 10:28:20 +0400 Subject: [PATCH] Mark `make_default_short_help` as private API Refs: https://github.com/pallets/click/issues/3189#issuecomment-3774030149 --- CHANGES.rst | 1 + src/click/utils.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 1c4e997342..6a104dfa10 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -21,6 +21,7 @@ Unreleased ``pytest-xdist`` to detect test pollution and race conditions. :pr:`3151` - Add contributor documentation for running stress tests, randomized parallel tests, and Flask smoke tests. :pr:`3151` :pr:`3177` +- Mark ``make_default_short_help`` as private API. :issue:`3189` :pr:`3250` Version 8.3.2 ------------- diff --git a/src/click/utils.py b/src/click/utils.py index beae26f761..89cae3b99c 100644 --- a/src/click/utils.py +++ b/src/click/utils.py @@ -57,7 +57,10 @@ def make_str(value: t.Any) -> str: def make_default_short_help(help: str, max_length: int = 45) -> str: - """Returns a condensed version of help string.""" + """Returns a condensed version of help string. + + :meta private: + """ # Consider only the first paragraph. paragraph_end = help.find("\n\n")