Skip to content

Commit e6e8e9c

Browse files
Fix typing error in older Python versions
1 parent db0d01e commit e6e8e9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dask_jobqueue/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import signal
55
from contextlib import suppress
66
from enum import Enum
7-
from typing import Dict
7+
from typing import Dict, Optional
88
import warnings
99
from tornado.ioloop import IOLoop
1010

@@ -114,7 +114,7 @@ async def on_worker_start(self, worker: Worker) -> None:
114114
return None
115115

116116
@property
117-
def loop(self) -> IOLoop | None:
117+
def loop(self) -> Optional[IOLoop]:
118118
loop = self.__loop
119119
if loop is None:
120120
# If the loop is not running when this is called, the LoopRunner.loop

0 commit comments

Comments
 (0)