summaryrefslogtreecommitdiff
path: root/src/tests/documentation.py
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2021-04-03 15:57:33 +0200
committerMichele Simionato <michele.simionato@gmail.com>2021-04-03 15:57:33 +0200
commit7fb1e34632b8f27578eb89c1c583c58b7dc74fde (patch)
tree2d4fa4b223d8db51a755ecb6df9aa645ded0810e /src/tests/documentation.py
parentc12ec8557d8834e4c5c7c59b8275f3694ea6039d (diff)
downloadpython-decorator-git-7fb1e34632b8f27578eb89c1c583c58b7dc74fde.tar.gz
Fixed func.__doc__ not being copied
Diffstat (limited to 'src/tests/documentation.py')
-rw-r--r--src/tests/documentation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py
index 67bb44a..889f97f 100644
--- a/src/tests/documentation.py
+++ b/src/tests/documentation.py
@@ -1143,10 +1143,12 @@ and not if you pass them as keyword arguments:
```
This can be pretty confusing since non-keyword arguments are passed as
keywork arguments, but it the way it works with ``functools.wraps`` and
-the way many people expect it to work:
+the way many people expect it to work. You can play with
$$chattywrapper
+and see that we are consistent indeed.
+
In the present implementation, decorators generated by ``decorator``
can only be used on user-defined Python functions, methods or coroutines.
I have no interest in decorating generic callable objects. If you want to