Skip to main content

abbrtask

Abbreviate task name.

def abbrtask(
S: str,
max: int
) - > str

Abbreviate task name.

Parameters

NameTypeDescription
SstrThe full task name or module path to be abbreviated.
maxintThe maximum allowed character length for the resulting task name string.

Returns

TypeDescription
strThe abbreviated task name, using a dot-bracket notation if the original string exceeds the maximum length, or '???' if the input is null.