]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: clean up Argument Clinic howto's (#107797) (#107800)
authorErlend E. Aasland <erlend@python.org>
Wed, 9 Aug 2023 07:54:32 +0000 (09:54 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 07:54:32 +0000 (07:54 +0000)
(cherry picked from commit 34cafd35e35dcb44b4347a6478fdbf88b900240c)

- fix formatting in @text_signature howto and NEWS entry

Doc/howto/clinic.rst

index 23be8a7a85c093e41f425b2972d923246516432a..5f4d3977bc1605fa162768ad9d6c5243163f96cc 100644 (file)
@@ -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)
    --