[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 e775601ef1)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2023-09-01 06:33:36 -07:00 committed by GitHub
parent 56683097f4
commit 712994e1ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View 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

View 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