Skip to content

Commit 985b02f

Browse files
committed
cleanup: remove redundant pylint disable comments for attribute-defined-outside-init
1 parent e00110a commit 985b02f

File tree

18 files changed

+4
-24
lines changed

18 files changed

+4
-24
lines changed

instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def instrumentation_dependencies(self) -> Collection[str]:
132132
return _instruments
133133

134134
def _instrument(self, **kwargs):
135-
# pylint: disable=attribute-defined-outside-init
136135
self._tracer = get_tracer(
137136
__name__, __version__, kwargs.get("tracer_provider")
138137
)

instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ def _instrument(self, **kwargs):
459459
)
460460
)
461461
return
462-
# pylint: disable=attribute-defined-outside-init
463462
(
464463
self._wrapped_module_name,
465464
self._wrapped_function_name,

instrumentation/opentelemetry-instrumentation-boto/src/opentelemetry/instrumentation/boto/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ def _instrument(self, **kwargs):
9292
# For example EC2 uses AWSQueryConnection and S3 uses
9393
# AWSAuthConnection
9494

95-
# pylint: disable=attribute-defined-outside-init
9695
self._tracer = get_tracer(
9796
__name__,
9897
__version__,

instrumentation/opentelemetry-instrumentation-boto3sqs/src/opentelemetry/instrumentation/boto3sqs/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def set(self, carrier: CarrierT, key: str, value: str) -> None:
9393
boto3sqs_setter = Boto3SQSSetter()
9494

9595

96-
# pylint: disable=attribute-defined-outside-init
9796
class Boto3SQSInstrumentor(BaseInstrumentor):
9897
received_messages_spans: Dict[str, Span] = {}
9998
current_span_related_to_token: Span = None

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ def instrumentation_dependencies(self) -> Collection[str]:
135135
return _instruments
136136

137137
def _instrument(self, **kwargs):
138-
# pylint: disable=attribute-defined-outside-init
139-
140138
# tracers are lazy initialized per-extension in _get_tracer
141139
self._tracers = {}
142140
# loggers are lazy initialized per-extension in _get_logger

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ def before_service_call(
471471
span.update_name(f"{operation_name} {request_model}")
472472

473473
# this is used to calculate the operation duration metric, duration may be skewed by request_hook
474-
# pylint: disable=attribute-defined-outside-init
475474
self._operation_start = default_timer()
476475

477476
# pylint: disable=no-self-use,too-many-locals

instrumentation/opentelemetry-instrumentation-confluent-kafka/src/opentelemetry/instrumentation/confluent_kafka/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ class ConfluentKafkaInstrumentor(BaseInstrumentor):
228228
See `BaseInstrumentor`
229229
"""
230230

231-
# pylint: disable=attribute-defined-outside-init
232231
@staticmethod
233232
def instrument_producer(
234233
producer: Producer, tracer_provider=None

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,6 @@ async def _(*_):
20542054
)
20552055

20562056

2057-
# pylint: disable=attribute-defined-outside-init
20582057
class TestFastAPIFallback(TestBaseFastAPI):
20592058
@pytest.fixture(autouse=True)
20602059
def inject_fixtures(self, caplog):

instrumentation/opentelemetry-instrumentation-flask/tests/base_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,4 @@ def excluded2_endpoint():
118118
self._repeat_custom_response_headers
119119
)
120120

121-
# pylint: disable=attribute-defined-outside-init
122121
self.client = Client(self.app, Response)

instrumentation/opentelemetry-instrumentation-flask/tests/test_automatic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def test_uninstrument(self):
5151
self.app = flask.Flask(__name__)
5252

5353
self.app.route("/hello/<int:helloid>")(self._hello_endpoint)
54-
# pylint: disable=attribute-defined-outside-init
5554
self.client = Client(self.app, Response)
5655

5756
resp = self.client.get("/hello/123")
@@ -88,7 +87,6 @@ def test_no_op_tracer_provider(self):
8887

8988
self.app = flask.Flask(__name__)
9089
self.app.route("/hello/<int:helloid>")(self._hello_endpoint)
91-
# pylint: disable=attribute-defined-outside-init
9290
self.client = Client(self.app, Response)
9391
self.client.get("/hello/123")
9492

0 commit comments

Comments
 (0)