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
| Name | Type | Description |
|---|---|---|
| func | callable | The function or callable object to inspect for parameter definitions. |
Returns
| Type | Description |
|---|---|
list | A list of strings containing the names of parameters that match the allowed argument kinds. |