From bc2f3a02e77f7277cf01da151ebf4b09a0eaa8bf Mon Sep 17 00:00:00 2001 From: Philip Montgomery Date: Mon, 30 Oct 2023 08:21:59 -0400 Subject: [PATCH] another attempt at fixing type error --- cli/sparklespray/cluster_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/sparklespray/cluster_service.py b/cli/sparklespray/cluster_service.py index 256e613..b5e5bf4 100644 --- a/cli/sparklespray/cluster_service.py +++ b/cli/sparklespray/cluster_service.py @@ -381,7 +381,7 @@ def is_task_running(self, task_id): by_id = {x.task_id: x for x in self.tasks} return by_id[task_id].status == STATUS_CLAIMED - def get_summary(self, completion_rate=Optional[float]) -> str: + def get_summary(self, completion_rate: Optional[float] = None) -> str: # compute status of tasks by_status: Dict[str, int] = defaultdict(lambda: 0) for t in self.tasks: