mirror of https://github.com/python/cpython
Remove bogus annotations from the descriptor howto guide (#112349)
This commit is contained in:
parent
dc0adb44d8
commit
d9fc15222e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue