rberga06.utils.func.info.call_info#

class rberga06.utils.func.info.call_info(*, log: bool = True, logger: Logger | None = None, apply: bool = True)#

Bases: DecoratorWithAttr[list[CallInfo[Callable[…, Any]]]]

Collect detailed information about a function call.

__init__(*, log: bool = True, logger: Logger | None = None, apply: bool = True) None#

Methods

__init__(*[, log, logger, apply])

decorate(f)

Decorate function f.

get(f, /)

spec(__decorated__, *args, **kwargs)

Decorator behaviour specification.

Attributes

ATTR

apply

log

logger

data

decorate(f: _F) _F#

Decorate function f.

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

Decorator behaviour specification.