Skip to content

Commit 712994e

Browse files
[3.12] gh-101100: Fix sphinx warnings in tutorial/classes.rst (GH-108746) (#108756)
gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) (cherry picked from commit e775601) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 5668309 commit 712994e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ Doc/reference/expressions.rst
172172
Doc/reference/import.rst
173173
Doc/reference/simple_stmts.rst
174174
Doc/tutorial/appendix.rst
175-
Doc/tutorial/classes.rst
176175
Doc/tutorial/controlflow.rst
177176
Doc/tutorial/datastructures.rst
178177
Doc/tutorial/introduction.rst

Doc/tutorial/classes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ definition looked like this::
276276
then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, returning
277277
an integer and a function object, respectively. Class attributes can also be
278278
assigned to, so you can change the value of ``MyClass.i`` by assignment.
279-
:attr:`__doc__` is also a valid attribute, returning the docstring belonging to
279+
:attr:`!__doc__` is also a valid attribute, returning the docstring belonging to
280280
the class: ``"A simple example class"``.
281281

282282
Class *instantiation* uses function notation. Just pretend that the class

0 commit comments

Comments
 (0)