Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 16c5b6a

Browse files
committed
fixed lint
1 parent 65f15de commit 16c5b6a

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

google/cloud/bigtable/data/_async/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
cast,
2020
Any,
2121
AsyncIterable,
22+
Callable,
2223
Optional,
2324
Set,
2425
Sequence,
@@ -278,6 +279,7 @@ def _build_grpc_channel(self, *args, **kwargs) -> SwappableChannelType:
278279
Returns:
279280
a custom wrapped swappable channel
280281
"""
282+
create_channel_fn: Callable[[], Any]
281283
if self._emulator_host is not None:
282284
# emulators use insecure channel
283285
create_channel_fn = partial(insecure_channel, self._emulator_host)

google/cloud/bigtable/data/_sync_autogen/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# This file is automatically generated by CrossSync. Do not edit manually.
1818

1919
from __future__ import annotations
20-
from typing import cast, Any, Optional, Set, Sequence, TYPE_CHECKING
20+
from typing import cast, Any, Callable, Optional, Set, Sequence, TYPE_CHECKING
2121
import abc
2222
import time
2323
import warnings
@@ -206,6 +206,7 @@ def _build_grpc_channel(self, *args, **kwargs) -> SwappableChannelType:
206206
- **kwargs: keyword arguments passed by the gapic layer to create a new channel with
207207
Returns:
208208
a custom wrapped swappable channel"""
209+
create_channel_fn: Callable[[], Any]
209210
if self._emulator_host is not None:
210211
create_channel_fn = partial(insecure_channel, self._emulator_host)
211212
else:

tests/unit/data/_async/test_metrics_interceptor.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ async def test_unary_unary_interceptor_failure_generic(self):
104104
instance = self._make_one()
105105
exc = ValueError("test")
106106
continuation = CrossSync.Mock(side_effect=exc)
107-
call = continuation.return_value
108107
details = mock.Mock()
109108
request = mock.Mock()
110109
with pytest.raises(ValueError) as e:
@@ -119,7 +118,6 @@ async def test_unary_stream_interceptor_success(self):
119118
instance = self._make_one()
120119

121120
continuation = CrossSync.Mock(return_value=_make_mock_stream_call([1, 2]))
122-
call = continuation.return_value
123121
details = mock.Mock()
124122
request = mock.Mock()
125123
wrapper = await instance.intercept_unary_stream(continuation, details, request)
@@ -133,7 +131,6 @@ async def test_unary_stream_interceptor_failure_mid_stream(self):
133131
instance = self._make_one()
134132
exc = ValueError("test")
135133
continuation = CrossSync.Mock(return_value=_make_mock_stream_call([1], exc=exc))
136-
call = continuation.return_value
137134
details = mock.Mock()
138135
request = mock.Mock()
139136
wrapper = await instance.intercept_unary_stream(continuation, details, request)

tests/unit/data/_sync_autogen/test_metrics_interceptor.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def test_unary_unary_interceptor_failure_generic(self):
8282
instance = self._make_one()
8383
exc = ValueError("test")
8484
continuation = CrossSync._Sync_Impl.Mock(side_effect=exc)
85-
call = continuation.return_value
8685
details = mock.Mock()
8786
request = mock.Mock()
8887
with pytest.raises(ValueError) as e:
@@ -96,7 +95,6 @@ def test_unary_stream_interceptor_success(self):
9695
continuation = CrossSync._Sync_Impl.Mock(
9796
return_value=_make_mock_stream_call([1, 2])
9897
)
99-
call = continuation.return_value
10098
details = mock.Mock()
10199
request = mock.Mock()
102100
wrapper = instance.intercept_unary_stream(continuation, details, request)
@@ -111,7 +109,6 @@ def test_unary_stream_interceptor_failure_mid_stream(self):
111109
continuation = CrossSync._Sync_Impl.Mock(
112110
return_value=_make_mock_stream_call([1], exc=exc)
113111
)
114-
call = continuation.return_value
115112
details = mock.Mock()
116113
request = mock.Mock()
117114
wrapper = instance.intercept_unary_stream(continuation, details, request)

0 commit comments

Comments
 (0)