Skip to main content

get_func_args

Retrieves the names of a function's parameters that match specific argument kinds by inspecting the callable's signature.

def get_func_args(
func: callable
) - > list

Extracts the names of valid positional and keyword arguments from a callable object. Use this to introspect a function's signature and identify which parameters can be passed during a call.

Parameters

NameTypeDescription
funccallableThe function or callable object to inspect for parameter definitions.

Returns

TypeDescription
listA list of strings containing the names of parameters that match the allowed argument kinds.