diff options
Diffstat (limited to 'src/tests/documentation.py')
-rw-r--r-- | src/tests/documentation.py | 4 |
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 |