Skip to content

Commit 7e6adbf

Browse files
Improved type annotations
1 parent 156b41d commit 7e6adbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

yatq/worker/runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from yatq.exceptions import TaskRescheduleException
1313
from yatq.queue import Queue
1414
from yatq.worker.factory.base import BaseJobFactory
15-
from yatq.worker.job.base import BaseJob
15+
from yatq.worker.job.simple import BaseJob
1616
from yatq.worker.worker_settings import T_ExcInfo, WorkerSettings
1717

1818
LOGGER = logging.getLogger("yatq.worker")

yatq/worker/worker_settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import aioredis
55

66
from yatq.worker.factory.simple import SimpleJobFactory
7-
from yatq.worker.job.simple import SimpleJob
7+
from yatq.worker.job.base import BaseJob
88

99
T_ExcInfo = Tuple[Type[BaseException], BaseException, TracebackType]
1010

@@ -30,7 +30,7 @@ async def redis_client() -> aioredis.Redis: # pragma: no cover
3030

3131
@staticmethod
3232
async def on_task_process_exception(
33-
job: SimpleJob,
33+
job: BaseJob,
3434
exc_info: T_ExcInfo,
3535
) -> None: # pragma: no cover
3636
...

0 commit comments

Comments
 (0)