Skip to content

Commit

Permalink
Code review; fix regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Sep 27, 2021
1 parent a2678bd commit 5802463
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion distributed/diagnostics/tests/test_scheduler_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def close(self):
plugin = LifeCycle()
async with Scheduler(dashboard_address=":0") as s:
s.add_plugin(plugin)
pass
await plugin.start(s)

assert plugin.history == ["started", "closed"]
assert plugin.scheduler is s
Expand Down
2 changes: 1 addition & 1 deletion distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,7 @@ async def gather_dep(
("busy-gather", worker, to_gather_keys, stimulus_id, time())
)

recommendations = {}
recommendations: dict[TaskState, str | tuple] = {}
deps_to_iter = self.in_flight_workers.pop(worker)

for d in deps_to_iter:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
except ImportError:
setup_requires.append("cython")

_, _, params = cython_arg.partition("=")
params = params.split(",")
_, _, params_str = cython_arg.partition("=")
params = params_str.split(",")
profile = "profile" in params
if "annotate" in params:
import Cython.Compiler.Options
Expand Down

0 comments on commit 5802463

Please sign in to comment.