]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
switch descriptor howto to return value annotation (GH-7796)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Sep 2018 00:44:57 +0000 (17:44 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Sep 2018 00:44:58 +0000 (17:44 -0700)
(cherry picked from commit 28ea4c284724283265e95d1d1716c9f1dfc2d741)

Co-authored-by: NotAFile <notafile@gmail.com>
Doc/howto/descriptor.rst

index 5e85a9aa6594e458a7ef8470f2248f0133827d6b..e5412583a674929c409cbb2fd3c14b1660aa86a9 100644 (file)
@@ -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