OptionalArgDecorator.__call__

OptionalArgDecorator.__call__(self, func)[source]

Return self(func).

This method is invoked when the decorator was created with arguments.

Parameters
funccallable

Original function to be wrapped

Returns
wrappedcallable

The wrapped function