yera.opaque.decorator

Decorator to mark functions as opaque.

Symbols

def opaque — Mark a function as opaque to the tracer.

opaque

opaque(
    func: Callable[P, R],
) → OpaqueFunction[P, R]

Mark a function as opaque to the tracer.

Parameters

func
type: Callable[P, R]

Function whose internals should be hidden from tracing.

Returns

type: OpaqueFunction[P, R]

A callable wrapper preserving the function's behavior and metadata.