generate_changelog.actions.text_processing.SetDefault

SetDefault#

class generate_changelog.actions.text_processing.SetDefault[source]#

Return a default value when called with an empty value.

default: Union[str, Callable[[], str]] = ''#
__call__(input_text)[source]#

Return a default value when called with an empty value.

Return type:

str

Parameters:

input_text (str | Callable[[], str]) –

__init__(default='')#
Parameters:

default (str | Callable[[], str]) –

Return type:

None