[Python-checkins] [3.11] Docs: clean up Argument Clinic howto's (#107797) (#107800)

erlend-aasland webhook-mailer at python.org
Wed Aug 9 03:54:36 EDT 2023


https://github.com/python/cpython/commit/ec0c0c8692e32f1c694a53ab00b17893fc03666b
commit: ec0c0c8692e32f1c694a53ab00b17893fc03666b
branch: 3.11
author: Erlend E. Aasland <erlend at python.org>
committer: erlend-aasland <erlend.aasland at protonmail.com>
date: 2023-08-09T07:54:32Z
summary:

[3.11] Docs: clean up Argument Clinic howto's (#107797) (#107800)

(cherry picked from commit 34cafd35e35dcb44b4347a6478fdbf88b900240c)

- fix formatting in @text_signature howto and NEWS entry

files:
M Doc/howto/clinic.rst

diff --git a/Doc/howto/clinic.rst b/Doc/howto/clinic.rst
index 23be8a7a85c09..5f4d3977bc160 100644
--- a/Doc/howto/clinic.rst
+++ b/Doc/howto/clinic.rst
@@ -1920,7 +1920,9 @@ Example from :source:`Objects/codeobject.c`::
        Return a copy of the code object with new values for the specified fields.
    [clinic start generated output]*/
 
-The generated docstring ends up looking like this::
+The generated docstring ends up looking like this:
+
+.. code-block:: none
 
    replace($self, /, **changes)
    --



More information about the Python-checkins mailing list