summaryrefslogtreecommitdiff
path: root/doc/usage/extensions/example_numpy.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-03-27 01:46:22 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-03-27 01:46:22 +0900
commitfbdfade0687e67af2d822c830cf5ace8a53ed7aa (patch)
tree6cc7c2b96453d90893c240ef213a7f04c4769767 /doc/usage/extensions/example_numpy.py
parent3816bcdfa9cf65f9af6c70bbf7837fd51841ddfa (diff)
downloadsphinx-git-fbdfade0687e67af2d822c830cf5ace8a53ed7aa.tar.gz
doc: Use :pep: role to refer PEP documents
Diffstat (limited to 'doc/usage/extensions/example_numpy.py')
-rw-r--r--doc/usage/extensions/example_numpy.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/usage/extensions/example_numpy.py b/doc/usage/extensions/example_numpy.py
index f7722972e..ebe98bd82 100644
--- a/doc/usage/extensions/example_numpy.py
+++ b/doc/usage/extensions/example_numpy.py
@@ -55,7 +55,7 @@ on the first line, separated by a colon.
def function_with_types_in_docstring(param1, param2):
"""Example function with types documented in the docstring.
- `PEP 484`_ type annotations are supported. If attribute, parameter, and
+ :pep:`484` type annotations are supported. If attribute, parameter, and
return types are annotated according to `PEP 484`_, they do not need to be
included in the docstring:
@@ -70,10 +70,6 @@ def function_with_types_in_docstring(param1, param2):
-------
bool
True if successful, False otherwise.
-
- .. _PEP 484:
- https://peps.python.org/pep-0484/
-
"""