Commit 28ea4c28 authored by NotAFile's avatar NotAFile Committed by Benjamin Peterson

switch descriptor howto to return value annotation (GH-7796)

parent 3286ce4a
......@@ -48,11 +48,11 @@ a flexible set of new tools for everyday Python programs.
Descriptor Protocol
-------------------
``descr.__get__(self, obj, type=None) --> value``
``descr.__get__(self, obj, type=None) -> value``
``descr.__set__(self, obj, value) --> None``
``descr.__set__(self, obj, value) -> None``
``descr.__delete__(self, obj) --> None``
``descr.__delete__(self, obj) -> None``
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment