diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-11-23 21:21:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 21:21:49 (GMT) |
commit | d3c12144d34ee2b477708071321afa94a8b40a6f (patch) | |
tree | 7af4a983f266add60028e6cad98cebe14a1d1e0a | |
parent | 640454fd32c314fd92239c571ae620dabc5aacef (diff) | |
download | cpython-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.rst | 6 |
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 |