Skip to content

Commit 097eb54

Browse files
committed
fix mypy error
1 parent 6150a05 commit 097eb54

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

executor/engine/job/condition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ def _parse_clock_str(time_str: str) -> T.Tuple[int, int, int]:
127127
minute: int
128128
second: int
129129
if time_str.count(":") == 1:
130-
hour, minute = time_str.split(":")
131-
hour, minute = int(hour), int(minute)
130+
_hour, _minute = time_str.split(":")
131+
hour, minute = int(_hour), int(_minute)
132132
second = 0
133133
elif time_str.count(":") == 2:
134-
hour, minute, second = time_str.split(":")
135-
hour, minute, second = int(hour), int(minute), int(second)
134+
_hour, _minute, _second = time_str.split(":")
135+
hour, minute, second = int(_hour), int(_minute), int(_second)
136136
else:
137137
hour = int(time_str)
138138
minute = 0

executor/engine/job/extend/sentinel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
if T.TYPE_CHECKING:
9-
from executor.engine.core import Engine
9+
from ...core import Engine
1010

1111

1212
def SentinelJob(
@@ -32,6 +32,7 @@ def SentinelJob(
3232
if "name" not in sentinel_attrs:
3333
sentinel_attrs["name"] = f"sentinel-{func.__name__}"
3434

35+
base_class: T.Type[Job]
3536
if isinstance(job_type, str):
3637
if job_type == "process":
3738
base_class = ProcessJob

0 commit comments

Comments
 (0)