rberga06.utils.func.dec.Decorator#

class rberga06.utils.func.dec.Decorator(*args, **kwargs)#

Bases: DecoratorBase, Protocol

Define a decorator.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

decorate(f, /)

Decorate function f.

spec(__decorated__, *args, **kwargs)

Decorator behaviour specification.

decorate(f: _F, /) _F#

Decorate function f.

spec(__decorated__: Callable[[...], Any], *args: Any, **kwargs: Any) Any#

Decorator behaviour specification.