From ed7143bb7a0651d7528b7ec99e3a21e694719e18 Mon Sep 17 00:00:00 2001 From: Kumar Shubham Date: Thu, 27 Nov 2025 18:54:19 +0530 Subject: [PATCH] The Quickstart example for @retry in the user docs missed commas between keyword arguments. It resulted in invalid Python syntax. This patch corrects the snippet to prevent user confusion. --- docs/user/quickstart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/quickstart.md b/docs/user/quickstart.md index fb3fefe..8bfd22e 100644 --- a/docs/user/quickstart.md +++ b/docs/user/quickstart.md @@ -504,9 +504,9 @@ from uplink import retry, Consumer, get class GitHub(Consumer): @retry( # Retry on 503 response status code or any exception. - when=retry.when.status(503) | retry.when.raises(Exception) + when=retry.when.status(503) | retry.when.raises(Exception), # Stop after 5 attempts or when backoff exceeds 10 seconds. - stop=retry.stop.after_attempt(5) | retry.stop.after_delay(10) + stop=retry.stop.after_attempt(5) | retry.stop.after_delay(10), # Use exponential backoff with added randomness. backoff=retry.backoff.jittered(multiplier=0.5) )