]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104683: Argument Clinic: Refactor and simplify 'add docstring' states (#107550)
authorErlend E. Aasland <erlend@python.org>
Tue, 1 Aug 2023 23:32:27 +0000 (01:32 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Aug 2023 23:32:27 +0000 (23:32 +0000)
commitb4d889778198e11257c3ed7ab456539b3933d737
treee6707ef8cfdd05198549c9fc97c147e14a46170f
parent818c83cf819244bb0e77d956d28b84dd7434cabb
gh-104683: Argument Clinic: Refactor and simplify 'add docstring' states (#107550)

Introduce docstring_append() helper, and use it for both parameter and
function docstrings. Remove docstring fixup from
do_post_block_processing_cleanup(); instead, make sure no fixup is needed.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/test/test_clinic.py
Tools/clinic/clinic.py