From: Raymond Hettinger Date: Thu, 23 Nov 2023 21:16:00 +0000 (+0000) Subject: Remove bogus annotations from the descriptor howto guide (#112349) X-Git-Tag: v3.13.0a3~653 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9fc15222e96942e30ea8b0561dec5c82ecb4663;p=thirdparty%2FPython%2Fcpython.git Remove bogus annotations from the descriptor howto guide (#112349) --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 90d67d84d0ef..69cf066190bc 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