mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Remove bogus annotations from the descriptor howto guide (#112349)
This commit is contained in:
parent
dc0adb44d8
commit
d9fc15222e
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue