Skip to content

Commit 33578d7

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

File tree

6 files changed

+7
-8
lines changed
  • instrumentation
    • opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server
    • opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon
    • opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask
    • opentelemetry-instrumentation-grpc
    • opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx

6 files changed

+7
-8
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def __init__(self, *args, **kwargs):
289289

290290

291291
class AioHttpServerInstrumentor(BaseInstrumentor):
292-
# pylint: disable=protected-access,attribute-defined-outside-init
292+
# pylint: disable=protected-access
293293
"""An instrumentor for aiohttp.web.Application
294294
295295
See `BaseInstrumentor`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def process_response(self, req, resp, resource, req_succeeded=None): # pylint:d
561561

562562

563563
class FalconInstrumentor(BaseInstrumentor):
564-
# pylint: disable=protected-access,attribute-defined-outside-init
564+
# pylint: disable=protected-access
565565
"""An instrumentor for falcon.API
566566
567567
See `BaseInstrumentor`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def __init__(self, *args, **kwargs):
626626

627627

628628
class FlaskInstrumentor(BaseInstrumentor):
629-
# pylint: disable=protected-access,attribute-defined-outside-init
629+
# pylint: disable=protected-access
630630
"""An instrumentor for flask.Flask
631631
632632
See `BaseInstrumentor`

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class GrpcInstrumentorServer(BaseInstrumentor):
320320
321321
"""
322322

323-
# pylint:disable=attribute-defined-outside-init, redefined-outer-name
323+
# pylint:disable=redefined-outer-name
324324

325325
def __init__(self, filter_=None):
326326
excluded_service_filter = _excluded_service_filter()
@@ -374,7 +374,7 @@ class GrpcAioInstrumentorServer(BaseInstrumentor):
374374
375375
"""
376376

377-
# pylint:disable=attribute-defined-outside-init, redefined-outer-name
377+
# pylint:disable=redefined-outer-name
378378

379379
def __init__(self, filter_=None):
380380
excluded_service_filter = _excluded_service_filter()
@@ -506,7 +506,7 @@ class GrpcAioInstrumentorClient(BaseInstrumentor):
506506
507507
"""
508508

509-
# pylint:disable=attribute-defined-outside-init, redefined-outer-name
509+
# pylint:disable=redefined-outer-name
510510

511511
def __init__(self, filter_=None):
512512
excluded_service_filter = _excluded_service_filter()

instrumentation/opentelemetry-instrumentation-grpc/tests/test_aio_server_interceptor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ async def test_span_lifetime(self):
358358
class SpanLifetimeServicer(GRPCTestServerServicer):
359359
# pylint:disable=C0103
360360
async def SimpleMethod(self, request, context):
361-
# pylint:disable=attribute-defined-outside-init
362361
self.span = trace.get_current_span()
363362

364363
return Response(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ async def aclose(self) -> None:
861861

862862

863863
class HTTPXClientInstrumentor(BaseInstrumentor):
864-
# pylint: disable=protected-access,attribute-defined-outside-init
864+
# pylint: disable=protected-access
865865
"""An instrumentor for httpx Client and AsyncClient
866866
867867
See `BaseInstrumentor`

0 commit comments

Comments
 (0)