mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed typing
This commit is contained in:
parent
ac1f0efde8
commit
5790c431d0
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
@ -25,7 +25,7 @@ class Backoff:
|
|||
self._current_delay = 0.0
|
||||
self._counter = 0
|
||||
|
||||
def __iter__(self):
|
||||
def __iter__(self) -> "Backoff":
|
||||
return self
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue