]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (GH-109424) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Sep 2023 08:36:24 +0000 (01:36 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 08:36:24 +0000 (08:36 +0000)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/tools/.nitignore
Doc/tutorial/controlflow.rst

index 36ea3a95314ff09f63b89549272a5ced9d5e004e..dace135cb560f150362bd113b3555ad60936e452 100644 (file)
@@ -150,7 +150,6 @@ Doc/reference/datamodel.rst
 Doc/reference/expressions.rst
 Doc/reference/import.rst
 Doc/reference/simple_stmts.rst
-Doc/tutorial/controlflow.rst
 Doc/tutorial/datastructures.rst
 Doc/tutorial/introduction.rst
 Doc/using/cmdline.rst
index 4bcc3768111ccd07192e8ea7be72cdbd7a4b3678..aa9caa101da40a43bee8581b75771689af1ca92a 100644 (file)
@@ -534,7 +534,7 @@ This example, as usual, demonstrates some new Python features:
   Different types define different methods.  Methods of different types may have
   the same name without causing ambiguity.  (It is possible to define your own
   object types and methods, using *classes*, see :ref:`tut-classes`)
-  The method :meth:`~list.append` shown in the example is defined for list objects; it
+  The method :meth:`!append` shown in the example is defined for list objects; it
   adds a new element at the end of the list.  In this example it is equivalent to
   ``result = result + [a]``, but more efficient.
 
@@ -1046,7 +1046,7 @@ Function Annotations
 information about the types used by user-defined functions (see :pep:`3107` and
 :pep:`484` for more information).
 
-:term:`Annotations <function annotation>` are stored in the :attr:`__annotations__`
+:term:`Annotations <function annotation>` are stored in the :attr:`!__annotations__`
 attribute of the function as a dictionary and have no effect on any other part of the
 function.  Parameter annotations are defined by a colon after the parameter name, followed
 by an expression evaluating to the value of the annotation.  Return annotations are