Skip to content

Commit 501b7bd

Browse files
lint
1 parent 8e50f8b commit 501b7bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@
128128

129129

130130
class PyMySQLInstrumentor(BaseInstrumentor):
131-
def instrumentation_dependencies(self) -> Collection[str]:
131+
def instrumentation_dependencies(self) -> Collection[str]: # pylint: disable=no-self-use
132132
return _instruments
133133

134-
def _instrument(self, **kwargs):
134+
def _instrument(self, **kwargs): # pylint: disable=no-self-use
135135
"""Integrate with the PyMySQL library.
136136
https://github.com/PyMySQL/PyMySQL/
137137
"""
@@ -151,7 +151,7 @@ def _instrument(self, **kwargs):
151151
commenter_options=commenter_options,
152152
)
153153

154-
def _uninstrument(self, **kwargs):
154+
def _uninstrument(self, **kwargs): # pylint: disable=no-self-use
155155
""" "Disable PyMySQL instrumentation"""
156156
dbapi.unwrap_connect(pymysql, "connect")
157157

instrumentation/opentelemetry-instrumentation-pymysql/tests/test_pymysql_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525

2626
class TestPyMysqlIntegration(TestBase):
27+
# pylint: disable=invalid-name
2728
def tearDown(self):
2829
super().tearDown()
2930
with self.disable_logging():

0 commit comments

Comments
 (0)