generate_changelog.actions.text_processing.Slice

Slice#

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

When called, return a slice of the sequence.

__init__(start=None, stop=None, step=None)#
Parameters:
Return type:

None

start: Union[int, Callable[[], int], None] = None#

The start of the slice. None means the beginning of the sequence.

stop: Union[int, Callable[[], int], None] = None#

The end of the slice. None means the end of the sequence.

step: Union[int, Callable[[], int], None] = None#

Slice using this step betweeen indices. None means don’t use the step.

__call__(input_text)[source]#

Slice the sequence.

Return type:

str

Parameters:

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