(param_names, defaults)
return [(f'{param}' if param not in defaults else f'{param}={defaults[param]}') for param in param_names]
Creates a list of strings of a format 'key=value' from parameter names and default values
Creates a list of strings of a format 'key=value' from parameter names and default values
Creates a list of strings of a format key = value from parameter names and default values
def sigparams2list(param_names, defaults):
    """Creates a list of strings of a format 'key=value' from parameter names and default values"""
    return [(f'{param}' if param not in defaults else f'{param}={defaults[param]}') for param in param_names]
def sigparams2list ( param_names , defaults ) : return [ ( f'{param}' if param not in defaults else f'{param}={defaults[param]}' ) for param in param_names ]