Skip to content

Commit 6537dfb

Browse files
committed
fix: fixing lint
1 parent e0c023c commit 6537dfb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

exporter/opentelemetry-exporter-prometheus/src/opentelemetry/exporter/prometheus/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,6 @@ def _create_info_metric(
351351
self, name: str, description: str, attributes: Dict[str, str]
352352
) -> InfoMetricFamily:
353353
"""Create an Info Metric Family with list of attributes"""
354-
i = InfoMetricFamily(name, description, labels=attributes)
355-
i.add_metric(labels=list(attributes.keys()), value=attributes)
356-
return i
354+
info = InfoMetricFamily(name, description, labels=attributes)
355+
info.add_metric(labels=list(attributes.keys()), value=attributes)
356+
return info

exporter/opentelemetry-exporter-prometheus/tests/test_prometheus_exporter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ def test_target_info_disabled(self):
334334
result = list(metric_reader._collector.collect())
335335

336336
for prometheus_metric in result:
337-
self.assertNotEquals(type(prometheus_metric), InfoMetricFamily)
338-
self.assertNotEquals(prometheus_metric.name, "target")
339-
self.assertNotEquals(
337+
self.assertNotEqual(type(prometheus_metric), InfoMetricFamily)
338+
self.assertNotEqual(prometheus_metric.name, "target")
339+
self.assertNotEqual(
340340
prometheus_metric.documentation, "Target metadata"
341341
)
342342
self.assertNotIn("os", prometheus_metric.samples[0].labels)

0 commit comments

Comments
 (0)