CallguardCallableDecorator

class app.util.helpers.callguard.CallguardCallableDecorator[source]

Bases: Generic[T, P, R]

Inheritance diagram of CallguardCallableDecorator

Inheritance Diagram for CallguardCallableDecorator

Methods

__init__(**options)

default_handler(obj, method, info, *args, ...)

guard(method, **callguard_options)

class CallguardHandlerProtocol[source]

Bases: Protocol

__init__(*args, **kwargs)
__init__(**options)[source]
Parameters:

options (Unpack[CallguardOptions])

static default_handler(obj, method, info, *args, **kwargs)[source]
Return type:

TypeVar(R)

Parameters:
  • obj (T)

  • method (CallguardWrapped[T, P, R])

  • info (CallguardHandlerInfo[T, P, R])

  • args (P)

  • kwargs (P)

static guard(method, **callguard_options)[source]
Return type:

GenericAlias[TypeVar(T, bound= object), ParamSpec(P), TypeVar(R)]

Parameters: