yera.opaque.base
Base class for opaque callables.
Symbols
class OpaqueCallable — Base class for callables that should appear as single opaque nodes in the graph.
OpaqueCallable
Inherits:
ABC, Generic[P, R]Subclasses:
OpaqueFunctionBase class for callables that should appear as single opaque nodes in the graph.
Methods
OpaqueCallable.__call__
__call__(
*args,
**kwargs,
) → RExecute the opaque callable with the given arguments.
Parameters
*args
type: P.args = ()
Positional arguments accepted by the wrapped callable.
**kwargs
type: P.kwargs
Keyword arguments accepted by the wrapped callable.
Returns
type: R
The wrapped callable's result.
OpaqueCallable.__repr__
__repr__() → strReturn a representation of the opaque callable.
Returns
type: str
A representation containing its wrapper type and name.