@@ -39,9 +39,9 @@ class TaskWithoutPath(PTask):
39
39
"""The base name of the task."""
40
40
function : Callable [..., Any ]
41
41
"""The task function."""
42
- depends_on : PyTree [PNode ] = field (factory = dict )
42
+ depends_on : dict [ str , PyTree [PNode ] ] = field (factory = dict )
43
43
"""A list of dependencies of task."""
44
- produces : PyTree [PNode ] = field (factory = dict )
44
+ produces : dict [ str , PyTree [PNode ] ] = field (factory = dict )
45
45
"""A list of products of task."""
46
46
markers : list [Mark ] = field (factory = list )
47
47
"""A list of markers attached to the task function."""
@@ -78,9 +78,9 @@ class Task(PTaskWithPath):
78
78
"""The name of the task."""
79
79
display_name : str | None = field (default = None , init = False )
80
80
"""The shortest uniquely identifiable name for task for display."""
81
- depends_on : PyTree [PNode ] = field (factory = dict )
81
+ depends_on : dict [ str , PyTree [PNode ] ] = field (factory = dict )
82
82
"""A list of dependencies of task."""
83
- produces : PyTree [PNode ] = field (factory = dict )
83
+ produces : dict [ str , PyTree [PNode ] ] = field (factory = dict )
84
84
"""A list of products of task."""
85
85
markers : list [Mark ] = field (factory = list )
86
86
"""A list of markers attached to the task function."""
0 commit comments