Skip to content

Commit cf134ea

Browse files
committed
Fix linter complaints
1 parent 31a8b4b commit cf134ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,6 @@ def uninstrument_client(
775775
# created instance. any pipelines created before un-instrumenting will
776776
# remain instrumented (pipelines should usually have a short span)
777777
unwrap(client, "pipeline")
778-
pass
779778
else:
780779
_logger.warning(
781780
"Attempting to un-instrument Redis connection that wasn't instrumented"

instrumentation/opentelemetry-instrumentation-redis/tests/test_redis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,10 @@ def assert_span_count(self, count: int):
408408
def setUp(self):
409409
super().setUp()
410410
self.instrumentor = RedisInstrumentor()
411-
self.client = FakeRedis()
411+
self.client: FakeRedis = FakeRedis()
412412

413-
async def _redis_pipeline_operations(self, client):
413+
@staticmethod
414+
async def _redis_pipeline_operations(client: FakeRedis):
414415
with pytest.raises(WatchError):
415416
async with client.pipeline(transaction=False) as pipe:
416417
await pipe.watch("a")

0 commit comments

Comments
 (0)