Skip to content
Myr

Mark `make_default_short_help` as private API (#3250)

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

authored by Rowlando13 · committed by GitHub · parents e3c87be, a931cfd · Browse files · 2 files+5 added−1 removed
This commit

State

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

Diff stats

2 files+5 added−1 removed

  • other:+5 added−1 removed

2 files+5 added−1 removed

modified:src/click/utils.py+4 added-1 removed
55 unmodified lines
56 return str(value)575859def make_default_short_help(help: str, max_length: int = 45) -> str:60 """Returns a condensed version of help string."""60 """Returns a condensed version of help string.6162 :meta private:63 """64 # Consider only the first paragraph.65 paragraph_end = help.find("\n\n")6667 if paragraph_end != -1:
563 unmodified lines
modified:CHANGES.rst+1 added
19 unmodified lines
20- Add optional randomized parallel test execution using ``pytest-randomly`` and21 ``pytest-xdist`` to detect test pollution and race conditions. :pr:`3151`22- Add contributor documentation for running stress tests, randomized23 parallel tests, and Flask smoke tests. :pr:`3151` :pr:`3177`24- Mark ``make_default_short_help`` as private API. :issue:`3189` :pr:`3250`25- ``CliRunner``'s redirected streams now expose the original file descriptor26 via ``fileno()``, so that ``faulthandler``, ``subprocess``, and other27 C-level consumers no longer crash with ``io.UnsupportedOperation``.28 :issue:`2865`
1327 unmodified lines