]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108857: improve markup in inspect.Signature.replace() docs (#108862)
authornabin2004 <107109731+nabin2004@users.noreply.github.com>
Wed, 6 Sep 2023 00:27:59 +0000 (06:12 +0545)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2023 00:27:59 +0000 (17:27 -0700)
Doc/library/inspect.rst

index 7884308a333020172ee3442305f2637a92663a45..603ac3263bb9ec043e8c3b1270a42790e49a4855 100644 (file)
@@ -730,7 +730,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