summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-23 21:21:49 (GMT)
committerGitHub <noreply@github.com>2023-11-23 21:21:49 (GMT)
commitd3c12144d34ee2b477708071321afa94a8b40a6f (patch)
tree7af4a983f266add60028e6cad98cebe14a1d1e0a
parent640454fd32c314fd92239c571ae620dabc5aacef (diff)
downloadcpython-d3c12144d34ee2b477708071321afa94a8b40a6f.zip
cpython-d3c12144d34ee2b477708071321afa94a8b40a6f.tar.gz
cpython-d3c12144d34ee2b477708071321afa94a8b40a6f.tar.bz2
[3.11] Remove bogus annotations from the descriptor howto guide (gh-112349) (gh-112350)
-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