From 2f8b4fbb7382722e062e758b88a0647435f1f2e8 Mon Sep 17 00:00:00 2001 From: Ben Mezger Date: Sat, 7 Oct 2023 17:35:52 +0200 Subject: [PATCH] Remove async from sync function --- pyretries/retry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyretries/retry.py b/pyretries/retry.py index cb082da..416adae 100644 --- a/pyretries/retry.py +++ b/pyretries/retry.py @@ -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))