Remove bogus annotations from the descriptor howto guide (#112349)

This commit is contained in:
Raymond Hettinger 2023-11-23 21:16:00 +00:00 committed by GitHub
parent dc0adb44d8
commit d9fc15222e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View 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