Skip to main content

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​

NameTypeDescription
funcallableThe function or method to be wrapped, which expects 'cluster' and 'sig' as its first two arguments after 'self'.

Returns​

TypeDescription
functionA wrapped version of the input function that automatically resolves cluster and signature context.