Skip to content

Commit 46282d4

Browse files
committed
Add type ignores to break CI deadlock
1 parent 50938e3 commit 46282d4

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-threading/src/opentelemetry/instrumentation/threading

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def __wrap_threading_run(
150150
token = context.attach(instance._otel_context)
151151
return call_wrapped(*args, **kwargs)
152152
finally:
153-
context.detach(token)
153+
context.detach(token) # type: ignore[reportArgumentType] remove with https://github.com/open-telemetry/opentelemetry-python-contrib/issues/3321
154154

155155
@staticmethod
156156
def __wrap_thread_pool_submit(
@@ -169,7 +169,7 @@ def wrapped_func(*func_args: Any, **func_kwargs: Any) -> R:
169169
token = context.attach(otel_context)
170170
return original_func(*func_args, **func_kwargs)
171171
finally:
172-
context.detach(token)
172+
context.detach(token) # type: ignore[reportArgumentType] remove with https://github.com/open-telemetry/opentelemetry-python-contrib/issues/3321
173173

174174
# replace the original function with the wrapped function
175175
new_args: tuple[Callable[..., Any], ...] = (wrapped_func,) + args[1:]

0 commit comments

Comments
 (0)