From 501b7bd766d0c9d5fc6980439d607142cc40c9d3 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Wed, 20 Nov 2024 15:27:35 -0800 Subject: [PATCH] lint --- .../src/opentelemetry/instrumentation/pymysql/__init__.py | 6 +++--- .../tests/test_pymysql_integration.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql/__init__.py b/instrumentation/opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql/__init__.py index 6853fe7720..563c0d8ef5 100644 --- a/instrumentation/opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql/__init__.py @@ -128,10 +128,10 @@ class PyMySQLInstrumentor(BaseInstrumentor): - def instrumentation_dependencies(self) -> Collection[str]: + def instrumentation_dependencies(self) -> Collection[str]: # pylint: disable=no-self-use return _instruments - def _instrument(self, **kwargs): + def _instrument(self, **kwargs): # pylint: disable=no-self-use """Integrate with the PyMySQL library. https://github.com/PyMySQL/PyMySQL/ """ @@ -151,7 +151,7 @@ def _instrument(self, **kwargs): commenter_options=commenter_options, ) - def _uninstrument(self, **kwargs): + def _uninstrument(self, **kwargs): # pylint: disable=no-self-use """ "Disable PyMySQL instrumentation""" dbapi.unwrap_connect(pymysql, "connect") diff --git a/instrumentation/opentelemetry-instrumentation-pymysql/tests/test_pymysql_integration.py b/instrumentation/opentelemetry-instrumentation-pymysql/tests/test_pymysql_integration.py index 18b1f0329b..607f782447 100644 --- a/instrumentation/opentelemetry-instrumentation-pymysql/tests/test_pymysql_integration.py +++ b/instrumentation/opentelemetry-instrumentation-pymysql/tests/test_pymysql_integration.py @@ -24,6 +24,7 @@ class TestPyMysqlIntegration(TestBase): + # pylint: disable=invalid-name def tearDown(self): super().tearDown() with self.disable_logging():