Skip to content

Commit e775601

Browse files
authored
gh-101100: Fix sphinx warnings in tutorial/classes.rst (#108746)
1 parent b936cf4 commit e775601

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
@@ -156,7 +156,6 @@ Doc/reference/expressions.rst
156156
Doc/reference/import.rst
157157
Doc/reference/simple_stmts.rst
158158
Doc/tutorial/appendix.rst
159-
Doc/tutorial/classes.rst
160159
Doc/tutorial/controlflow.rst
161160
Doc/tutorial/datastructures.rst
162161
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)