Skip to content

Commit

Permalink
Fixed typing
Browse files Browse the repository at this point in the history
  • Loading branch information
JrooTJunior committed Jun 18, 2021
1 parent ac1f0ef commit 5790c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiogram/utils/backoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BackoffConfig:
factor: float
jitter: float

def __post_init__(self):
def __post_init__(self) -> None:
if self.max_delay <= self.min_delay:
raise ValueError("`max_delay` should be greater than `min_delay`")
if self.factor <= 1:
Expand All @@ -25,7 +25,7 @@ def __init__(self, config: BackoffConfig) -> None:
self._current_delay = 0.0
self._counter = 0

def __iter__(self):
def __iter__(self) -> "Backoff":
return self

@property
Expand Down

0 comments on commit 5790c43

Please sign in to comment.