Skip to content

Commit

Permalink
allow a bit more parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Anvil committed Nov 24, 2023
1 parent 9f47b7b commit 048488a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kaioretry/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class _ContextIterator:
def __init__(self, identifier: uuid.UUID, sleep: SleepF[Any], tries: int,
delay: NonNegative, update_delay: UpdateDelayFunc,
logger: logging.Logger, /) -> None:
# pylint: disable=too-many-arguments
self.__identifier = identifier
self.__sleep = sleep
self.__delay = delay
Expand Down Expand Up @@ -189,6 +190,7 @@ def __init__(self, /, tries: int = -1, delay: NonNegative = 0, *,
max_delay: NonNegative | None = None,
min_delay: NonNegative = 0,
logger: logging.Logger = DEFAULT_LOGGER) -> None:
# pylint: disable=too-many-arguments
if tries == 0:
raise ValueError("tries value cannot be 0")
self.__tries = tries
Expand Down

0 comments on commit 048488a

Please sign in to comment.