Skip to content

Commit

Permalink
Remove bogus annotations from the descriptor howto guide (python#112349)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger authored Nov 23, 2023
1 parent dc0adb4 commit d9fc152
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/howto/descriptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9fc152

Please sign in to comment.