Skip to content

Commit 28ea4c2

Browse files
NotAFilebenjaminp
authored andcommitted
switch descriptor howto to return value annotation (GH-7796)
1 parent 3286ce4 commit 28ea4c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/howto/descriptor.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ a flexible set of new tools for everyday Python programs.
4848
Descriptor Protocol
4949
-------------------
5050

51-
``descr.__get__(self, obj, type=None) --> value``
51+
``descr.__get__(self, obj, type=None) -> value``
5252

53-
``descr.__set__(self, obj, value) --> None``
53+
``descr.__set__(self, obj, value) -> None``
5454

55-
``descr.__delete__(self, obj) --> None``
55+
``descr.__delete__(self, obj) -> None``
5656

5757
That is all there is to it. Define any of these methods and an object is
5858
considered a descriptor and can override default behavior upon being looked up

0 commit comments

Comments
 (0)