Skip to content

Commit b261466

Browse files
committed
fixed lint
1 parent 8481cb0 commit b261466

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@
7070
OperationType,
7171
tracked_retry,
7272
)
73-
74-
_LOGGER = logging.getLogger(__name__)
7573
from google.cloud.bigtable.data._metrics.handlers.gcp_exporter import (
7674
BigtableMetricsExporter,
7775
GoogleCloudMetricsHandler,
@@ -114,6 +112,8 @@
114112
SampleRowKeysRequest,
115113
)
116114

115+
_LOGGER = logging.getLogger(__name__)
116+
117117
if CrossSync.is_async:
118118
from grpc.aio import insecure_channel
119119

packages/google-cloud-bigtable/google/cloud/bigtable/data/_metrics/handlers/gcp_exporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ def _batch_write(
264264

265265
@staticmethod
266266
def _to_point(
267-
data_point: NumberDataPoint | HistogramDataPoint | ExponentialHistogramDataPoint,
267+
data_point: NumberDataPoint
268+
| HistogramDataPoint
269+
| ExponentialHistogramDataPoint,
268270
) -> Point:
269271
"""
270272
Adapted from CloudMonitoringMetricsExporter

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@
6464
OperationType,
6565
tracked_retry,
6666
)
67-
68-
_LOGGER = logging.getLogger(__name__)
6967
from google.cloud.bigtable.data._metrics.handlers.gcp_exporter import (
7068
BigtableMetricsExporter,
7169
GoogleCloudMetricsHandler,
@@ -119,6 +117,8 @@
119117
SampleRowKeysRequest,
120118
)
121119

120+
_LOGGER = logging.getLogger(__name__)
121+
122122
if TYPE_CHECKING:
123123
from google.cloud.bigtable.data._helpers import RowKeySamples, ShardedQuery
124124
from google.cloud.bigtable.data._sync_autogen.mutations_batcher import (

0 commit comments

Comments
 (0)