using_cluster_and_sig
A decorator that extracts cluster and signature information from function arguments before passing them to the wrapped function.
def using_cluster_and_sig(
fun: callable
) - > function
A decorator that extracts cluster information and signature arguments from a method's positional arguments before passing them to the wrapped function.
Parameters
| Name | Type | Description |
|---|---|---|
| fun | callable | The function or method to be wrapped, which expects 'cluster' and 'sig' as its first two arguments after 'self'. |
Returns
| Type | Description |
|---|---|
function | A wrapped version of the input function that automatically resolves cluster and signature context. |