Skip to main content

get_func_signature

FunctionSource

v_1: Signature = get_func_signature(func_candidate: Any)

Attempt to get the signature of a potential function.

Arguments

Requires

NameTypeRequired
Description
func_candidateAnyAn object that is callable and able to provide a function signature.

Returns

NameType
Description
v_1Signature

If the func_candidate is already a function, get its signature directly.

Otherwise, get its equivalent callable signature (such as init method of a class).