

def __init__(self, dependsOn, maximumRetries, runsOn, workerGroup, **kwargs):
    'Constructor for the activity class\n\n        Args:\n            dependsOn(list): list of dependent activities\n            maximumRetries(int): maximum number of retries\n            **kwargs(optional): Keyword arguments directly passed to base class\n\n        Note:\n            dependsOn and maximum retries are required fields for any activity\n        '
    if (not exactly_one(runsOn, workerGroup)):
        raise ETLInputError('Exactly one of runsOn or workerGroup allowed!')
    if maximumRetries:
        kwargs['runsOn'] = runsOn
    else:
        kwargs['workerGroup'] = workerGroup
    super(Activity, self).__init__(dependsOn=dependsOn, maximumRetries=maximumRetries, **kwargs)

dataset/ETHPy150Open coursera/dataduct/dataduct/pipeline/activity.py Activity.__init__/VarMisuse@44/182 `runsOn`->`maximumRetries`