Skip to content

Commit

Permalink
Merging in from docs-Feb
Browse files Browse the repository at this point in the history
  • Loading branch information
gphipps authored and gphipps committed Aug 7, 2024
2 parents 188392e + 6cda7bd commit 55ae2ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/onemod/scheduler/scheduling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ class TaskRegistry:
registry: defaultdict[str, set["Task"]] = defaultdict(set)

@classmethod
def get(cls, function_name: str) -> list["Task"]:
def get(cls, function_name: str) -> list[Task]:
return list(cls.registry[function_name])

@classmethod
def put(cls, function_name: str, task: "Task") -> None:
def put(cls, function_name: str, task: Task) -> None:
cls.registry[function_name].add(task)


def upstream_task_callback(action: Action) -> list["Task"]:
def upstream_task_callback(action: Action) -> list[Task]:
"""
Given an action, we should know (based on the action name) what the relevant upstream tasks
are.
Expand Down

0 comments on commit 55ae2ef

Please sign in to comment.