Skip to content

Commit

Permalink
Review scheduler annotations, part 2 (#6253)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored May 11, 2022
1 parent e390609 commit a4999a9
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 561 deletions.
2 changes: 1 addition & 1 deletion distributed/batched.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _background_send(self):
self.stopped.set()
self.abort()

def send(self, *msgs: dict) -> None:
def send(self, *msgs) -> None:
"""Schedule a message for sending to the other side
This completes quickly and synchronously
Expand Down
6 changes: 5 additions & 1 deletion distributed/diagnostics/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ async def close(self) -> None:
"""

def update_graph(
self, scheduler: Scheduler, keys: set[str], restrictions: dict, **kwargs
self,
scheduler: Scheduler,
keys: set[str],
restrictions: dict[str, float],
**kwargs,
) -> None:
"""Run when a new graph / tasks enter the scheduler"""

Expand Down
Loading

0 comments on commit a4999a9

Please sign in to comment.