bec_lib.signature_serializer.signature_to_dict#

signature_to_dict(func: Callable, include_class_obj=False) dict[source]#

Convert a function signature to a dictionary. The dictionary can be used to reconstruct the signature using dict_to_signature.

Parameters:

func (Callable) – Function to be converted

Returns:

Dictionary representation of the function signature

Return type:

dict