summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-08-08 00:56:52 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-08-08 00:56:52 (GMT)
commitc6d80c1bef62c996d1a7d3b544a108fef17fbf65 (patch)
tree69bfd207498ceb86fcec365e074c50c0f752e5fc /Doc/library
parentf56c9cd30d7b7113e32a2562f66cc78a3ec441a3 (diff)
downloadcpython-c6d80c1bef62c996d1a7d3b544a108fef17fbf65.zip
cpython-c6d80c1bef62c996d1a7d3b544a108fef17fbf65.tar.gz
cpython-c6d80c1bef62c996d1a7d3b544a108fef17fbf65.tar.bz2
Issue 8814: functools.wraps() did not copy __annotations__.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/functools.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 94be636..570f4d2 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -66,9 +66,9 @@ The :mod:`functools` module defines the following functions:
attributes of the wrapper function are updated with the corresponding attributes
from the original function. The default values for these arguments are the
module level constants *WRAPPER_ASSIGNMENTS* (which assigns to the wrapper
- function's *__name__*, *__module__* and *__doc__*, the documentation string) and
- *WRAPPER_UPDATES* (which updates the wrapper function's *__dict__*, i.e. the
- instance dictionary).
+ function's *__name__*, *__module__*, *__annotations__* and *__doc__*, the
+ documentation string) and *WRAPPER_UPDATES* (which updates the wrapper
+ function's *__dict__*, i.e. the instance dictionary).
The main intended use for this function is in :term:`decorator` functions which
wrap the decorated function and return the wrapper. If the wrapper function is