Skip to content

Commit ecbb162

Browse files
committed
fix types
1 parent bf2fa39 commit ecbb162

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

executorlib/task_scheduler/file/queue_spawner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import subprocess
3-
from typing import Optional, Union
3+
from typing import Callable, Optional, Union
44

55
from pysqa import QueueAdapter
66

@@ -140,15 +140,15 @@ def _pysqa_execute_command(
140140
return out
141141

142142

143-
def get_terminate_function(terminate_tasks_on_shutdown: bool) -> Optional[callable]:
143+
def get_terminate_function(terminate_tasks_on_shutdown: bool) -> Optional[Callable]:
144144
"""
145145
Get the appropriate terminate function based on the shutdown configuration.
146146
147147
Args:
148148
terminate_tasks_on_shutdown (bool): Flag indicating whether to terminate tasks on shutdown.
149149
150150
Returns:
151-
Optional[callable]: The terminate function to use, or None if no termination is needed.
151+
Optional[Callable]: The terminate function to use, or None if no termination is needed.
152152
"""
153153
if terminate_tasks_on_shutdown:
154154
return terminate_with_pysqa

0 commit comments

Comments
 (0)