fix: list to set in typehints

This commit is contained in:
Bertrand Benjamin 2022-04-13 11:29:30 +02:00
parent 527ad160cf
commit ca0f498d4e

View File

@ -31,12 +31,12 @@ class Scheduler:
] ]
@property @property
def all_deps(self) -> list[str]: def all_deps(self) -> set[str]:
"""List dependencies of all tasks""" """List dependencies of all tasks"""
return {d for task in self.tasks for d in task.deps} return {d for task in self.tasks for d in task.deps}
@property @property
def all_output(self) -> list[str]: def all_output(self) -> set[str]:
"""List ouput of all tasks""" """List ouput of all tasks"""
return {task.output for task in self.tasks} return {task.output for task in self.tasks}