Skip to content

Commit 8dcf67c

Browse files
committed
fixed callable type annotation
1 parent b1ad4b3 commit 8dcf67c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/api_core/retry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def retry_target(
155155
higher-level retry helper :class:`Retry`.
156156
157157
Args:
158-
target(Callable[None, Any]): The function to call and retry. This must be a
158+
target(Callable[[], Any]): The function to call and retry. This must be a
159159
nullary function - apply arguments with `functools.partial`.
160160
predicate (Callable[Exception]): A callable used to determine if an
161161
exception raised by the target should be considered retryable.

google/api_core/retry_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def retry_target(
8181
higher-level retry helper :class:`Retry`.
8282
8383
Args:
84-
target(Callable): The function to call and retry. This must be a
84+
target(Callable[[], Any]): The function to call and retry. This must be a
8585
nullary function - apply arguments with `functools.partial`.
8686
predicate (Callable[Exception]): A callable used to determine if an
8787
exception raised by the target should be considered retryable.

0 commit comments

Comments
 (0)