]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Remove bogus annotations from the descriptor howto guide (gh-112349) (gh-112350)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Nov 2023 21:21:49 +0000 (22:21 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2023 21:21:49 +0000 (21:21 +0000)
Doc/howto/descriptor.rst

index 0a7263614670a12cc39ac1c8f7ad4fa0ea10f75a..ec7d99b440ee4403131327a83bcc341c2db36eeb 100644 (file)
@@ -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