Skip to main content

remove_repeating_from_task

Given task name, remove repeating module names.

def remove_repeating_from_task(
task_name: string,
s: string
) - > string

Given task name, remove repeating module names.

Parameters

NameTypeDescription
task_namestringThe full name of the task, used to identify the module prefix to be stripped.
sstringThe string representation of a task chain or collection where repeating module names should be simplified.

Returns

TypeDescription
stringThe modified string with redundant module prefixes removed from subsequent task calls.