Skip to content

Commit

Permalink
Remove async from sync function
Browse files Browse the repository at this point in the history
  • Loading branch information
benmezger committed Oct 7, 2023
1 parent 08d9e6b commit 2f8b4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyretries/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Retry(BaseRetry[ReturnT]):
Synchronous retry
Examples:
>>> async def ok() -> bool:
>>> def ok() -> bool:
... return True
>>> retry = Retry[bool](strategies=[StopAfterAttemptStrategy(20)])
>>> print(retry(ok))
Expand Down

0 comments on commit 2f8b4fb

Please sign in to comment.