Skip to content

Commit 4589485

Browse files
committed
Add docs generation
1 parent ae80760 commit 4589485

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docs/retry.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ Retry
44
.. automodule:: google.api_core.retry
55
:members:
66
:show-inheritance:
7+
8+
Retry in AsyncIO
9+
----------------
10+
11+
.. automodule:: google.api_core.retry_async
12+
:members:
13+
:show-inheritance:

google/api_core/retry_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def with_deadline(self, deadline):
222222
deadline (float): How long to keep retrying.
223223
224224
Returns:
225-
Retry: A new retry instance with the given deadline.
225+
AsyncRetry: A new retry instance with the given deadline.
226226
"""
227227
return AsyncRetry(
228228
predicate=self._predicate,
@@ -241,7 +241,7 @@ def with_predicate(self, predicate):
241241
``True`` if the given exception is retryable.
242242
243243
Returns:
244-
Retry: A new retry instance with the given predicate.
244+
AsyncRetry: A new retry instance with the given predicate.
245245
"""
246246
return AsyncRetry(
247247
predicate=predicate,
@@ -262,7 +262,7 @@ def with_delay(self, initial=None, maximum=None, multiplier=None):
262262
multiplier (float): The multiplier applied to the delay.
263263
264264
Returns:
265-
Retry: A new retry instance with the given predicate.
265+
AsyncRetry: A new retry instance with the given predicate.
266266
"""
267267
return AsyncRetry(
268268
predicate=self._predicate,

0 commit comments

Comments
 (0)