Skip to content

Commit ee93cd7

Browse files
committed
fix lint
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
1 parent b33b31b commit ee93cd7

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_run_coroutine_threadsafe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# limitations under the License.
1414
import asyncio
1515
import threading
16-
from concurrent.futures import ThreadPoolExecutor
16+
from concurrent.futures import ( # pylint: disable=no-name-in-module
17+
ThreadPoolExecutor,
18+
)
1719
from unittest.mock import patch
1820

1921
# pylint: disable=no-name-in-module

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def __del__(self):
328328
if self in _InstrumentedFalconAPI._instrumented_falcon_apps:
329329
_InstrumentedFalconAPI._instrumented_falcon_apps.remove(self)
330330

331-
def _handle_exception(self, arg1, arg2, arg3, arg4): # pylint: disable=C0103
331+
def _handle_exception(self, arg1, arg2, arg3, arg4): # pylint: disable=C0103,W0237
332332
# Falcon 3 does not execute middleware within the context of the exception
333333
# so we capture the exception here and save it into the env dict
334334

@@ -352,7 +352,7 @@ def _handle_exception(self, arg1, arg2, arg3, arg4): # pylint: disable=C0103
352352
req.env[_ENVIRON_EXC] = exc
353353

354354
if _falcon_version == 1:
355-
return super()._handle_exception(ex, req, resp, params)
355+
return super()._handle_exception(ex, req, resp, params) # pylint: disable=W1114
356356

357357
return super()._handle_exception(req, resp, ex, params)
358358

instrumentation/opentelemetry-instrumentation-threading/tests/test_threading.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# limitations under the License.
1414

1515
import threading
16-
from concurrent.futures import ThreadPoolExecutor
16+
from concurrent.futures import ( # pylint: disable=no-name-in-module
17+
ThreadPoolExecutor,
18+
)
1719
from typing import List
1820
from unittest.mock import MagicMock, patch
1921

util/opentelemetry-util-genai/src/opentelemetry/util/genai/_upload/completion_hook.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
import posixpath
2121
import threading
2222
from collections import OrderedDict
23-
from concurrent.futures import Future, ThreadPoolExecutor
23+
from concurrent.futures import ( # pylint: disable=no-name-in-module
24+
Future,
25+
ThreadPoolExecutor,
26+
)
2427
from contextlib import ExitStack
2528
from dataclasses import asdict, dataclass
2629
from functools import partial

0 commit comments

Comments
 (0)