Skip to content

Commit 1cacc84

Browse files
committed
fix(exporter): Correct pylint disable comments in OTLP JSON exporters
Replace 'too-many-positional-arguments' with the correct pylint message ID 'too-many-arguments' and fix type ignore comments placement for imports without stubs.
1 parent 9abf25c commit 1cacc84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

exporter/opentelemetry-exporter-otlp-json-http/src/opentelemetry/exporter/otlp/json/http/_log_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class OTLPLogExporter(LogExporter):
8989

9090
_MAX_RETRY_TIMEOUT = 64
9191

92-
# pylint: disable=too-many-positional-arguments
92+
# pylint: disable=too-many-arguments
9393
def __init__(
9494
self,
9595
endpoint: Optional[str] = None,

exporter/opentelemetry-exporter-otlp-json-http/src/opentelemetry/exporter/otlp/json/http/metric_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class OTLPMetricExporter(MetricExporter, OTLPMetricExporterMixin):
101101

102102
_MAX_RETRY_TIMEOUT = 64
103103

104-
# pylint: disable=too-many-positional-arguments
104+
# pylint: disable=too-many-arguments
105105
def __init__(
106106
self,
107107
endpoint: str | None = None,

exporter/opentelemetry-exporter-otlp-json-http/src/opentelemetry/exporter/otlp/json/http/trace_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class OTLPSpanExporter(SpanExporter):
114114

115115
_MAX_RETRY_TIMEOUT = 64
116116

117-
# pylint: disable=too-many-positional-arguments
117+
# pylint: disable=too-many-arguments
118118
def __init__(
119119
self,
120120
endpoint: Optional[str] = None,

0 commit comments

Comments
 (0)