diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2023-11-23 21:16:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 21:16:00 (GMT) |
commit | d9fc15222e96942e30ea8b0561dec5c82ecb4663 (patch) | |
tree | c33377e82bc56977d6b41a75686d8d3f3f5b9ab2 /Doc/howto | |
parent | dc0adb44d8d4a33121deaad398f24b5d8ae36d19 (diff) | |
download | cpython-d9fc15222e96942e30ea8b0561dec5c82ecb4663.zip cpython-d9fc15222e96942e30ea8b0561dec5c82ecb4663.tar.gz cpython-d9fc15222e96942e30ea8b0561dec5c82ecb4663.tar.bz2 |
Remove bogus annotations from the descriptor howto guide (#112349)
Diffstat (limited to 'Doc/howto')
-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 90d67d8..69cf066 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 |