]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) (#108756)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Sep 2023 13:33:36 +0000 (06:33 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2023 13:33:36 +0000 (15:33 +0200)
gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746)
(cherry picked from commit e775601ef1ada83a80e1539d0bcd5509deadee14)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/tools/.nitignore
Doc/tutorial/classes.rst

index 765fbe2ca9e2409c3581d0010730dd4eee2fbc4e..4fc681984bb8f784f4893adbd04f02ed9dffb44b 100644 (file)
@@ -172,7 +172,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 91a3b73d2b55aabb3b1c66badd0c94e48b834740..7b92e1a51b6e677f517551c81992348f6b7008fc 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