Skip to content

Commit ba831b5

Browse files
committed
Add a docstring
1 parent d379295 commit ba831b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/import.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ def process(element_name: str, *, year: str, handle_dep: Callable[[str], int]) -
8080

8181

8282
def add(element: str, backend: 'Backend', year: str) -> int:
83+
"""
84+
Add 'element' into the task tracker, along with all its dependencies.
85+
86+
We recurse into all the dependencies of the task we're adding, working to
87+
add the leaves first so that the higher level tasks can be created with the
88+
links to their dependencies in place from the start.
89+
"""
8390
CYCLE = object()
8491
elements: Dict[str, Union[int, object]] = {}
8592

0 commit comments

Comments
 (0)