Skip to content

Commit 54a7352

Browse files
Typing fixes (#9159)
1 parent c26f4ca commit 54a7352

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

continuous_integration/scripts/test_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def main(argv: list[str] | None = None) -> None:
489489
total.groupby([total.file, total.test])
490490
.filter(lambda g: (g.status == "x").sum() >= args.nfails)
491491
.reset_index()
492-
.assign(test=lambda df: df.file + "." + df.test)
492+
.assign(test=lambda df: df.file + "." + df.test) # type: ignore
493493
.groupby("test")
494494
)
495495
overall = {name: grouped.get_group(name) for name in grouped.groups}

distributed/worker_memory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def memory_monitor(self, nanny: Nanny) -> None:
417417
except (ProcessLookupError, psutil.NoSuchProcess, psutil.AccessDenied):
418418
return # pragma: nocover
419419

420+
assert self.memory_limit
420421
if memory / self.memory_limit <= self.memory_terminate_fraction:
421422
return
422423

0 commit comments

Comments
 (0)