]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) (#108755)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Sep 2023 10:57:30 +0000 (03:57 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2023 10:57:30 +0000 (10:57 +0000)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/tools/.nitignore
Doc/tutorial/classes.rst

index 871a48282523c4165b7e24577ec5bd2f4c1c7fee..ab7f4a8dc618b95d69ec7447e3f808a0128d644f 100644 (file)
@@ -158,7 +158,6 @@ Doc/reference/expressions.rst
 Doc/reference/import.rst
 Doc/reference/simple_stmts.rst
 Doc/tutorial/appendix.rst
-Doc/tutorial/classes.rst
 Doc/tutorial/controlflow.rst
 Doc/tutorial/datastructures.rst
 Doc/tutorial/introduction.rst
index e4002cfa3519368a086fb96cd9e66a43eecb80f9..46dfb378590ffbf65f5f0b089748a4198bfce15e 100644 (file)
@@ -276,7 +276,7 @@ definition looked like this::
 then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, returning
 an integer and a function object, respectively. Class attributes can also be
 assigned to, so you can change the value of ``MyClass.i`` by assignment.
-:attr:`__doc__` is also a valid attribute, returning the docstring belonging to
+:attr:`!__doc__` is also a valid attribute, returning the docstring belonging to
 the class: ``"A simple example class"``.
 
 Class *instantiation* uses function notation.  Just pretend that the class