Skip to content

Commit 15e02b1

Browse files
committed
fix typing for nullable retry functions
1 parent 175f463 commit 15e02b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/api_core/retry/retry_unary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check_if_exists():
8383

8484

8585
def retry_target(
86-
target: Callable[_P, _R],
86+
target: Callable[[], _R],
8787
predicate: Callable[[Exception], bool],
8888
sleep_generator: Iterable[float],
8989
timeout: float | None = None,

google/api_core/retry/retry_unary_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def check_if_exists():
9494

9595

9696
async def retry_target(
97-
target: Callable[_P, Awaitable[_R]],
97+
target: Callable[[], Awaitable[_R]],
9898
predicate: Callable[[Exception], bool],
9999
sleep_generator: Iterable[float],
100100
timeout: float | None = None,

0 commit comments

Comments
 (0)