Skip to content

Commit

Permalink
added type hint to check_timeout_on_yield
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Aug 15, 2023
1 parent c9ef1d5 commit 41c7868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/api_core/retry_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(
exception_factory: Optional[
Callable[[list[Exception], bool, float], tuple[Exception, Exception | None]]
] = None,
check_timeout_on_yield=False,
check_timeout_on_yield: bool = False,
):
"""
Args:
Expand Down
3 changes: 1 addition & 2 deletions google/api_core/retry_streaming_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import time
from functools import partial

from google.api_core import exceptions
from google.api_core.retry_streaming import _build_timeout_error

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -123,7 +122,7 @@ def __init__(
exception_factory: Optional[
Callable[[list[Exception], bool, float], tuple[Exception, Exception | None]]
] = None,
check_timeout_on_yield=False,
check_timeout_on_yield: bool = False,
):
"""
Args:
Expand Down

0 comments on commit 41c7868

Please sign in to comment.