Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Jan 8, 2025
1 parent 36f45cd commit 2940de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio_request/deadline_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
DeadlineProvider = Callable[[Deadline, int, int], Deadline]


def split_deadline_between_attempts(split_factor: int | None = None) -> DeadlineProvider:
def split_deadline_between_attempts(*, split_factor: int | None = None) -> DeadlineProvider:
"""
Split deadline between attempts.
Expand All @@ -19,7 +19,7 @@ def split_deadline_between_attempts(split_factor: int | None = None) -> Deadline
"""

if split_factor is not None and split_factor < 2:
raise ValueError("max_split should be greater or equal to 2")
raise ValueError("split_factor should be greater or equal to 2")

def __provider(deadline: Deadline, attempt: int, attempts_count: int) -> Deadline:
if deadline.expired:
Expand Down

0 comments on commit 2940de9

Please sign in to comment.