diff --git a/instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai/generate_content.py b/instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai/generate_content.py index f22d3cb3d3..dcdf3a4345 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai/generate_content.py +++ b/instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai/generate_content.py @@ -619,7 +619,7 @@ async def instrumented_generate_content( # Disabling type checking because this is not yet implemented and tested fully. -def _create_instrumented_async_generate_content_stream( # pyright: ignore +def _create_instrumented_async_generate_content_stream( # type: ignore snapshot: _MethodsSnapshot, otel_wrapper: OTelWrapper ): wrapped_func = snapshot.async_generate_content_stream @@ -632,7 +632,7 @@ async def instrumented_generate_content_stream( contents: Union[ContentListUnion, ContentListUnionDict], config: Optional[GenerateContentConfigOrDict] = None, **kwargs: Any, - ) -> Awaitable[AsyncIterator[GenerateContentResponse]]: # pyright: ignore + ) -> Awaitable[AsyncIterator[GenerateContentResponse]]: # type: ignore helper = _GenerateContentInstrumentationHelper( self, otel_wrapper, model ) diff --git a/instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/__init__.py b/instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/__init__.py index 56de338ae0..f9fa082014 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/__init__.py +++ b/instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/__init__.py @@ -79,7 +79,7 @@ def _methods_to_wrap( ): yield ( client_class, - client_class.generate_content.__name__, # pyright: ignore[reportUnknownMemberType] + client_class.generate_content.__name__, # type: ignore[reportUnknownMemberType] method_wrappers.generate_content, ) @@ -89,7 +89,7 @@ def _methods_to_wrap( ): yield ( client_class, - client_class.generate_content.__name__, # pyright: ignore[reportUnknownMemberType] + client_class.generate_content.__name__, # type: ignore[reportUnknownMemberType] method_wrappers.agenerate_content, )