yera.opaque.opaque_function
Opaque function wrapper and decorator.
Symbols
OpaqueFunction
Inherits:
OpaqueCallable[P, R]Wrapper for functions marked with the opaque decorator.
Methods
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,
) → RInvoke 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.