]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove bogus annotations from the descriptor howto guide (#112349)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Thu, 23 Nov 2023 21:16:00 +0000 (21:16 +0000)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2023 21:16:00 +0000 (15:16 -0600)
Doc/howto/descriptor.rst

index 90d67d84d0ef08c72d90d3e0fa4a63613e11c03a..69cf066190bc2fa468e4f9f3bf03c90b2afad5cf 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