Skip to content

Commit

Permalink
fix typing for nullable retry functions
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Dec 16, 2024
1 parent 175f463 commit 15e02b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/api_core/retry/retry_unary.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def check_if_exists():


def retry_target(
target: Callable[_P, _R],
target: Callable[[], _R],
predicate: Callable[[Exception], bool],
sleep_generator: Iterable[float],
timeout: float | None = None,
Expand Down
2 changes: 1 addition & 1 deletion google/api_core/retry/retry_unary_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def check_if_exists():


async def retry_target(
target: Callable[_P, Awaitable[_R]],
target: Callable[[], Awaitable[_R]],
predicate: Callable[[Exception], bool],
sleep_generator: Iterable[float],
timeout: float | None = None,
Expand Down

0 comments on commit 15e02b1

Please sign in to comment.