yera 0.11.1

yera.opaque.opaque_function

Opaque function wrapper and decorator.

Symbols

class OpaqueFunction — Wrapper for functions marked with the ``opaque`` decorator.

OpaqueFunction

Wrapper for functions marked with the opaque decorator.

Methods

__init__ — Initialize a transparent wrapper around an opaque function.
__call__ — Invoke the wrapped function.

OpaqueFunction.__init__

__init__(
    func: Callable[P, R],
)

Initialize a transparent wrapper around an opaque function.

Parameters

func
type: Callable[P, R]

Decorated function whose call behavior and metadata are preserved.

OpaqueFunction.__call__

__call__(
    *args,
    **kwargs,
) → R

Invoke the wrapped function.

Parameters

*args
type: P.args = ()

Positional arguments accepted by the wrapped function.

**kwargs
type: P.kwargs

Keyword arguments accepted by the wrapped function.

Returns

type: R

The wrapped function's result.