Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 778223e

Browse files
committed
lint
1 parent fbeaf34 commit 778223e

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/metrics/export/aggregate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def __init__(self, config=None):
148148
self.current[">"] = 0
149149
self.checkpoint[">"] = 0
150150

151+
# pylint: disable=R0201
151152
def _validate_boundaries(self, boundaries):
152153
if not boundaries:
153154
logger.warning("Bounds is empty. Using default.")
@@ -273,6 +274,7 @@ def get_latest_timestamp(time_stamp, other_timestamp):
273274
return time_stamp
274275

275276

277+
# pylint: disable=R1705
276278
def verify_type(this, other):
277279
if isinstance(other, this.__class__):
278280
return True

opentelemetry-sdk/src/opentelemetry/sdk/metrics/export/batcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def checkpoint_set(self) -> Sequence[MetricRecord]:
4040
data in all of the aggregators in this batcher.
4141
"""
4242
metric_records = []
43+
# pylint: disable=W0612
4344
for (
4445
(instrument, aggregator_type, labels),
4546
aggregator,

opentelemetry-sdk/src/opentelemetry/sdk/metrics/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import logging
1616
import threading
1717
from collections import defaultdict
18-
from typing import Sequence, Tuple, Type
18+
from typing import Sequence, Tuple
1919

2020
from opentelemetry.metrics import (
2121
Counter,

opentelemetry-sdk/tests/metrics/test_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ def test_run_exception(self, logger_mock):
486486
self.assertTrue(logger_mock.warning.called)
487487

488488

489+
# pylint: disable=no-self-use
489490
class TestBoundCounter(unittest.TestCase):
490491
def test_add(self):
491492
meter_mock = mock.Mock()

opentelemetry-sdk/tests/metrics/test_view.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ def test_default_aggregator(self, logger_mock):
7575

7676

7777
class DummyMetric(metrics.Metric):
78+
# pylint: disable=W0231
7879
def __init__(self):
7980
pass

0 commit comments

Comments
 (0)