def __init__(self, name, action, dependencies=None, serialize=True):
    self.serialize = serialize
    self.name = name
    self._task = action

    if dependencies:
      # TODO(John Sirois): kill this warning and the kwarg after a deprecation cycle.
      print(dedent('''
          WARNING: Registered dependencies are now ignored and only `Task.product_types`
          and product requirements as expressed in `Task.prepare` are used to
          infer Task dependencies.

          Please fix this registration:
            {reg}
            {location}
          ''').format(reg=self,
                      location=traceback.format_list([traceback.extract_stack()[-2]])[0]),
            file=sys.stderr)
:param name: the name of the task.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/goal/task_registrar.py/TaskRegistrar.__init__