summaryrefslogtreecommitdiff
path: root/doc/usage/extensions/example_numpy.py
diff options
context:
space:
mode:
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/
-
"""