From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 6 Sep 2023 00:39:09 +0000 (-0700) Subject: [3.11] gh-108857: improve markup in inspect.Signature.replace() docs (GH-108862)... X-Git-Tag: v3.11.6~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ef888d25046963a1c7572f7204c26047c82f6a2;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-108857: improve markup in inspect.Signature.replace() docs (GH-108862) (#108970) gh-108857: improve markup in inspect.Signature.replace() docs (GH-108862) (cherry picked from commit 6f8411cfd68134ccae01b0b4cb332578008a69e3) Co-authored-by: nabin2004 <107109731+nabin2004@users.noreply.github.com> --- diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 932e52816413..11f2d7011997 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -709,7 +709,7 @@ function. .. method:: Signature.replace(*[, parameters][, return_annotation]) - Create a new Signature instance based on the instance replace was invoked + Create a new Signature instance based on the instance :meth:`replace` was invoked on. It is possible to pass different ``parameters`` and/or ``return_annotation`` to override the corresponding properties of the base signature. To remove return_annotation from the copied Signature, pass in