Skip to content

Commit e2d7fa7

Browse files
daniel-sancheparthea
authored andcommitted
fixed mypy issues
1 parent 3b29113 commit e2d7fa7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

google/api_core/retry/retry_streaming.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def retry_target_stream(
5959
[List[Exception], RetryFailureReason, Optional[float]],
6060
Tuple[Exception, Optional[Exception]],
6161
] = build_retry_error,
62-
init_args: _P.args = (),
63-
init_kwargs: _P.kwargs = {},
62+
init_args: tuple = (),
63+
init_kwargs: dict = {},
6464
**kwargs,
6565
) -> Generator[_Y, Any, None]:
6666
"""Create a generator wrapper that retries the wrapped stream if it fails.

google/api_core/retry/retry_streaming_async.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ async def retry_target_stream(
6262
[list[Exception], RetryFailureReason, float | None],
6363
tuple[Exception, Exception | None],
6464
] = build_retry_error,
65-
init_args: _P.args = (),
66-
init_kwargs: _P.kwargs = {},
65+
init_args: tuple = (),
66+
init_kwargs: dict = {},
6767
**kwargs,
6868
) -> AsyncGenerator[_Y, None]:
6969
"""Create a generator wrapper that retries the wrapped stream if it fails.

0 commit comments

Comments
 (0)