summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2023-11-23 21:16:00 (GMT)
committerGitHub <noreply@github.com>2023-11-23 21:16:00 (GMT)
commitd9fc15222e96942e30ea8b0561dec5c82ecb4663 (patch)
treec33377e82bc56977d6b41a75686d8d3f3f5b9ab2 /Doc/howto
parentdc0adb44d8d4a33121deaad398f24b5d8ae36d19 (diff)
downloadcpython-d9fc15222e96942e30ea8b0561dec5c82ecb4663.zip
cpython-d9fc15222e96942e30ea8b0561dec5c82ecb4663.tar.gz
cpython-d9fc15222e96942e30ea8b0561dec5c82ecb4663.tar.bz2
Remove bogus annotations from the descriptor howto guide (#112349)
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/descriptor.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 90d67d8..69cf066 100644
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -521,11 +521,11 @@ everyday Python programs.
Descriptor protocol
-------------------
-``descr.__get__(self, obj, type=None) -> value``
+``descr.__get__(self, obj, type=None)``
-``descr.__set__(self, obj, value) -> None``
+``descr.__set__(self, obj, value)``
-``descr.__delete__(self, obj) -> None``
+``descr.__delete__(self, obj)``
That is all there is to it. Define any of these methods and an object is
considered a descriptor and can override default behavior upon being looked up