From 3574ba07ef031dfd68dc8876e72c3ae17798c57a Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sun, 15 Apr 2018 14:44:55 +0200 Subject: Updated docs [skip CI] --- docs/tests.documentation.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/tests.documentation.rst b/docs/tests.documentation.rst index e69cfa2..f8af489 100644 --- a/docs/tests.documentation.rst +++ b/docs/tests.documentation.rst @@ -589,6 +589,17 @@ where `restricted` is a decorator factory defined as follows % (self.user, func.__name__)) +In general a decorator factory has a signature + +.. code-block:: python + + def decfactory(func, param1=default1, .., paramN=defaultN, *args, **kw): + ... + +Each parameter must have a default, so that `decfactory` can work +as an alias for `decfactory()`, i.e. the decorator in which are parameters +have the default value. + ``decorator(cls)`` -------------------------------------------- -- cgit v1.2.1