From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:21:49 +0000 (+0100) Subject: [3.11] Remove bogus annotations from the descriptor howto guide (gh-112349) (gh-112350) X-Git-Tag: v3.11.7~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3c12144d34ee2b477708071321afa94a8b40a6f;p=thirdparty%2FPython%2Fcpython.git [3.11] Remove bogus annotations from the descriptor howto guide (gh-112349) (gh-112350) --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 0a7263614670..ec7d99b440ee 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