Skip to content

Commit 01b3f8f

Browse files
committed
fix: type annotation
1 parent 6b08205 commit 01b3f8f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

taskiq/middlewares/smart_retry_middleware.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from __future__ import annotations
2-
31
import datetime
42
import random
53
from logging import getLogger
6-
from typing import Any
4+
from typing import Any, Optional
75

86
from taskiq import ScheduleSource
97
from taskiq.abc.middleware import TaskiqMiddleware
@@ -36,7 +34,7 @@ def __init__(
3634
use_jitter: bool = False,
3735
use_delay_exponent: bool = False,
3836
max_delay_exponent: float = 60,
39-
schedule_source: ScheduleSource | None = None,
37+
schedule_source: Optional[ScheduleSource] = None,
4038
) -> None:
4139
"""
4240
Initialize retry middleware.

0 commit comments

Comments
 (0)