Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.decorators.SignatureHook¶
- class brainprep.decorators.SignatureHook[source]¶
Bases:
HookDecorator that prints which function is called, its arguments and execution time.
Examples
>>> from brainprep.decorators import step, SignatureHook
>>> @step( ... hooks=[SignatureHook()] ... ) ... def add(a, b): ... '''Adds two numbers.''' ... return a + b
>>> result = add(3, 5)