Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 9, 2023
1 parent 017bff9 commit 0811ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lightning/app/utilities/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def _get_next_backoff_time(num_retries: int, backoff_value: float = 0.5) -> floa


def _retry_wrapper(self, func: Callable, max_tries: Optional[int] = None) -> Callable:
"""Returns the function decorated by a wrapper that retries the call several times if a connection error
occurs.
"""Returns the function decorated by a wrapper that retries the call several times if a connection error occurs.
The retries follow an exponential backoff.
Expand Down Expand Up @@ -177,6 +176,7 @@ class LightningClient(GridRestClient):
Args:
retry: Whether API calls should follow a retry mechanism with exponential backoff.
max_tries: Maximum number of attempts (or -1 to retry forever).
"""

def __init__(self, retry: bool = True, max_tries: Optional[int] = None) -> None:
Expand Down

0 comments on commit 0811ff3

Please sign in to comment.