Skip to content

Commit

Permalink
Update TaskParmeter to use updated library code (#2023)
Browse files Browse the repository at this point in the history
task_family property is deprecated.
  • Loading branch information
Tarrasch committed Feb 10, 2017
1 parent 1a4b471 commit 206d303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luigi/parameter.py
Expand Up @@ -713,7 +713,7 @@ class TaskParameter(Parameter):
When used programatically, the parameter should be specified
directly with the :py:class:`luigi.task.Task` (sub) class. Like
``MyMetaTask(my_task_param=my_tasks.MyTask)``. On the command line,
you specify the :py:attr:`luigi.task.Task.task_family`. Like
you specify the :py:meth:`luigi.task.Task.get_task_family`. Like
.. code-block:: console
Expand All @@ -735,7 +735,7 @@ def serialize(self, cls):
"""
Converts the :py:class:`luigi.task.Task` (sub) class to its family name.
"""
return cls.task_family
return cls.get_task_family()


class EnumParameter(Parameter):
Expand Down

0 comments on commit 206d303

Please sign in to comment.