fix: list to set in typehints
This commit is contained in:
parent
527ad160cf
commit
ca0f498d4e
@ -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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user