Skip to content

Commit 3656373

Browse files
committed
ruff fix
1 parent 4ddb2f3 commit 3656373

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/executorlib/task_scheduler/interactive

src/executorlib/task_scheduler/interactive/shared.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import time
55
from concurrent.futures import Future
66
from concurrent.futures._base import PENDING
7-
from typing import Optional, Tuple
7+
from typing import Optional
88

99
from executorlib.standalone.interactive.communication import (
1010
ExecutorlibSocketError,
@@ -20,7 +20,7 @@ def execute_task_dict(
2020
cache_directory: Optional[str] = None,
2121
cache_key: Optional[str] = None,
2222
error_log_file: Optional[str] = None,
23-
) -> Tuple[bool, dict]:
23+
) -> tuple[bool, dict]:
2424
"""
2525
Execute the task in the task_dict by communicating it via the interface.
2626
@@ -89,7 +89,7 @@ def reset_task_dict(future_obj: Future, future_queue: queue.Queue, task_dict: di
8989

9090
def _execute_task_without_cache(
9191
interface: SocketInterface, task_dict: dict, future_obj: Future
92-
) -> Tuple[bool, dict]:
92+
) -> tuple[bool, dict]:
9393
"""
9494
Execute the task in the task_dict by communicating it via the interface.
9595
@@ -121,7 +121,7 @@ def _execute_task_with_cache(
121121
future_obj: Future,
122122
cache_directory: str,
123123
cache_key: Optional[str] = None,
124-
) -> Tuple[bool, dict]:
124+
) -> tuple[bool, dict]:
125125
"""
126126
Execute the task in the task_dict by communicating it via the interface using the cache in the cache directory.
127127

0 commit comments

Comments
 (0)