From 130c4aac5248cf3d34b78a880b102a8c6b30c7b1 Mon Sep 17 00:00:00 2001 From: Ernest Provo Date: Sun, 22 Feb 2026 10:16:37 -0500 Subject: [PATCH] Remove reference to non-existent Scheduler.cleanup in Scheduler.close docstring The See Also section in the Scheduler.close docstring referenced Scheduler.cleanup, which does not exist. Removes the stale reference. Closes #9175 --- distributed/scheduler.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/distributed/scheduler.py b/distributed/scheduler.py index d73da7c71f..4f1d6aabb8 100644 --- a/distributed/scheduler.py +++ b/distributed/scheduler.py @@ -4329,12 +4329,7 @@ async def close( timeout: float | None = None, reason: str = "unknown", ) -> None: - """Send cleanup signal to all coroutines then wait until finished - - See Also - -------- - Scheduler.cleanup - """ + """Send cleanup signal to all coroutines then wait until finished""" if self.status in (Status.closing, Status.closed): await self.finished() return