Specify that task provides/requires must be an immutable set.

This commit is contained in:
Joshua Harlow
2013-05-21 22:49:03 -07:00
parent 422b5a8497
commit e4149ab91d

View File

@@ -38,13 +38,13 @@ class Task(object):
return "Task: %s" % (self.name)
def requires(self):
"""Return any input 'resource' names this task depends on existing
before this task can be applied."""
"""Returns an *immutable* input 'resource' name set this task depends
on existing before this task can be applied."""
return self._requires
def provides(self):
"""Return any output 'resource' names this task produces that other
tasks may depend on this task providing."""
"""Returns an *immutable* output 'resource' name set this task
produces that other tasks may depend on this task providing."""
return self._provides
@abc.abstractmethod