From 61e53a4c905213a28d29fd6c2f0f467d23bf9702 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Wed, 10 Apr 2019 15:38:59 +0200 Subject: Small change to the docs suggested by https://github.com/yjqiang --- src/tests/documentation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tests/documentation.py b/src/tests/documentation.py index 0cfa8bf..56c0e19 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -1238,8 +1238,8 @@ can only be used on user-defined Python functions or methods. They cannot be used on generic callable objects or built-in functions, due to limitations of the standard library's ``inspect`` module, especially for Python 2. In Python 3.5, many such limitations have been removed, but -I still think that it is cleaner and safer to decorate only -functions. If you want to decorate things like classmethods/staticmethods +I still think that it is cleaner and safer to decorate only functions and +coroutines. If you want to decorate things like classmethods/staticmethods and general callables - which I will never support in the decorator module - I suggest you to look at the [wrapt](https://wrapt.readthedocs.io/en/latest/) project by Graeme Dumpleton. -- cgit v1.2.1