summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-23 23:07:14 (GMT)
committerGitHub <noreply@github.com>2023-11-23 23:07:14 (GMT)
commit86db104eebd4c3a914840f02e1ff2b5088180f15 (patch)
tree787ee1a9bc51f3014961a703e1faa618f181d369 /Doc/howto
parent3210e3c6cc87d08cee3f61b4bdb322f0427070da (diff)
downloadcpython-86db104eebd4c3a914840f02e1ff2b5088180f15.zip
cpython-86db104eebd4c3a914840f02e1ff2b5088180f15.tar.gz
cpython-86db104eebd4c3a914840f02e1ff2b5088180f15.tar.bz2
[3.12] Remove bogus annotations from the descriptor howto guide (GH-112349) (#112352)
Remove bogus annotations from the descriptor howto guide (GH-112349) (cherry picked from commit d9fc15222e96942e30ea8b0561dec5c82ecb4663) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
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 0a72636..ec7d99b 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