Skip to content

Commit 3b14346

Browse files
[3.11] gh-101100: Fix sphinx warnings in tutorial/classes.rst (GH-108746) (#108755)
Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 6ba1234 commit 3b14346

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
@@ -158,7 +158,6 @@ Doc/reference/expressions.rst
158158
Doc/reference/import.rst
159159
Doc/reference/simple_stmts.rst
160160
Doc/tutorial/appendix.rst
161-
Doc/tutorial/classes.rst
162161
Doc/tutorial/controlflow.rst
163162
Doc/tutorial/datastructures.rst
164163
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)