Skip to content

Commit

Permalink
Annotate arguments in new_task
Browse files Browse the repository at this point in the history
Should knock out type checking when the function is called, which should
simplify the work needed in later steps.
  • Loading branch information
jakirkham committed Feb 9, 2021
1 parent f326238 commit 63d109e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3922,7 +3922,7 @@ def update_graph(

# TODO: balance workers

def new_task(self, key, spec, state):
def new_task(self, key: str, spec: object, state: str):
""" Create a new task, and associated states """
parent: SchedulerState = cast(SchedulerState, self)

Expand Down

0 comments on commit 63d109e

Please sign in to comment.