[Python-checkins] switch descriptor howto to return value annotation (GH-7796)

Miss Islington (bot) webhook-mailer at python.org
Mon Sep 10 20:45:02 EDT 2018


https://github.com/python/cpython/commit/f3d00ae3be27ede2fc834d9d2b0028c9ad39f492
commit: f3d00ae3be27ede2fc834d9d2b0028c9ad39f492
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年09月10日T17:44:58-07:00
summary:
switch descriptor howto to return value annotation (GH-7796)
(cherry picked from commit 28ea4c284724283265e95d1d1716c9f1dfc2d741)
Co-authored-by: NotAFile <notafile at gmail.com>
files:
M Doc/howto/descriptor.rst
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 5e85a9aa6594..e5412583a674 100644
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /