generate_changelog.utilities.eval_if_callable

eval_if_callable#

generate_changelog.utilities.eval_if_callable(value)[source]#

Tries to evaluate value as an action, a pipeline, or a callable if possible.

Parameters:

value (Any) – A callable, action dictionary, list of action dictionaries, or other.

Return type:

Any

Returns:

The original value if it can not be evaluated further.