diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-01 10:57:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 10:57:30 (GMT) |
commit | 3b143468995ca9e6e1ecfa69b5dc8fd587fcc33a (patch) | |
tree | f0afaba2d48420c31724b5352c8771f893546b18 /Doc/tutorial | |
parent | 6ba1234c1c643743be15090ecf8da39137c8cbac (diff) | |
download | cpython-3b143468995ca9e6e1ecfa69b5dc8fd587fcc33a.zip cpython-3b143468995ca9e6e1ecfa69b5dc8fd587fcc33a.tar.gz cpython-3b143468995ca9e6e1ecfa69b5dc8fd587fcc33a.tar.bz2 |
[3.11] gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) (#108755)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/classes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index e4002cf..46dfb37 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -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 |