@@ -1293,18 +1293,18 @@ def test_process_multimodal_returns_false_on_precondition_failure(self):
12931293 inv1 .context_token = None
12941294 inv1 .span = MagicMock ()
12951295 self .assertFalse (
1296- handler .process_multimodal_stop (inv1 , method = "stop_llm" )
1296+ handler .process_multimodal_stop (inv1 , method = "stop_llm" ) # pylint: disable=unexpected-keyword-arg
12971297 )
12981298 self .assertFalse (
1299- handler .process_multimodal_fail (inv1 , error , method = "fail_llm" )
1299+ handler .process_multimodal_fail (inv1 , error , method = "fail_llm" ) # pylint: disable=unexpected-keyword-arg
13001300 )
13011301
13021302 # span is None
13031303 inv2 = self ._create_invocation_with_multimodal ()
13041304 inv2 .context_token = MagicMock ()
13051305 inv2 .span = None
13061306 self .assertFalse (
1307- handler .process_multimodal_stop (inv2 , method = "stop_llm" )
1307+ handler .process_multimodal_stop (inv2 , method = "stop_llm" ) # pylint: disable=unexpected-keyword-arg
13081308 )
13091309
13101310 # No multimodal data
@@ -1315,14 +1315,14 @@ def test_process_multimodal_returns_false_on_precondition_failure(self):
13151315 InputMessage (role = "user" , parts = [Text (content = "Hi" )])
13161316 ]
13171317 self .assertFalse (
1318- handler .process_multimodal_stop (inv3 , method = "stop_llm" )
1318+ handler .process_multimodal_stop (inv3 , method = "stop_llm" ) # pylint: disable=unexpected-keyword-arg
13191319 )
13201320
13211321 # multimodal_enabled=False
13221322 handler_disabled = self ._create_mock_handler (enabled = False )
13231323 inv4 = self ._create_invocation_with_multimodal (with_context = True )
13241324 self .assertFalse (
1325- handler_disabled .process_multimodal_stop (inv4 , method = "stop_llm" )
1325+ handler_disabled .process_multimodal_stop (inv4 , method = "stop_llm" ) # pylint: disable=unexpected-keyword-arg
13261326 )
13271327
13281328 @patch_env_vars (
@@ -1341,15 +1341,15 @@ def test_process_multimodal_fallback_on_queue_issues(self):
13411341 MultimodalProcessingMixin ._async_queue = None
13421342 with patch .object (handler , "_fallback_stop" ) as mock_end :
13431343 self .assertTrue (
1344- handler .process_multimodal_stop (inv , method = "stop_llm" )
1344+ handler .process_multimodal_stop (inv , method = "stop_llm" ) # pylint: disable=unexpected-keyword-arg
13451345 )
13461346 mock_end .assert_called_once ()
13471347
13481348 # Reset invocation context token
13491349 inv .context_token = MagicMock ()
13501350 with patch .object (handler , "_fallback_fail" ) as mock_fail :
13511351 self .assertTrue (
1352- handler .process_multimodal_fail (
1352+ handler .process_multimodal_fail ( # pylint: disable=unexpected-keyword-arg
13531353 inv , error , method = "fail_llm"
13541354 )
13551355 )
@@ -1361,7 +1361,7 @@ def test_process_multimodal_fallback_on_queue_issues(self):
13611361 inv .context_token = MagicMock ()
13621362 with patch .object (handler , "_fallback_stop" ) as mock_end2 :
13631363 self .assertTrue (
1364- handler .process_multimodal_stop (inv , method = "stop_llm" )
1364+ handler .process_multimodal_stop (inv , method = "stop_llm" ) # pylint: disable=unexpected-keyword-arg
13651365 )
13661366 mock_end2 .assert_called_once ()
13671367
@@ -1381,15 +1381,15 @@ def test_process_multimodal_enqueues_task(self):
13811381 # stop
13821382 inv1 = self ._create_invocation_with_multimodal (with_context = True )
13831383 self .assertTrue (
1384- handler .process_multimodal_stop (inv1 , method = "stop_llm" )
1384+ handler .process_multimodal_stop (inv1 , method = "stop_llm" ) # pylint: disable=unexpected-keyword-arg
13851385 )
13861386 task = MultimodalProcessingMixin ._async_queue .get_nowait ()
13871387 self .assertEqual (task .method , "stop_llm" )
13881388
13891389 # fail
13901390 inv2 = self ._create_invocation_with_multimodal (with_context = True )
13911391 self .assertTrue (
1392- handler .process_multimodal_fail (inv2 , error , method = "fail_llm" )
1392+ handler .process_multimodal_fail (inv2 , error , method = "fail_llm" ) # pylint: disable=unexpected-keyword-arg
13931393 )
13941394 task = MultimodalProcessingMixin ._async_queue .get_nowait ()
13951395 self .assertEqual (task .method , "fail_llm" )
@@ -1404,8 +1404,8 @@ def test_fallback_and_async_methods_handle_span_none(self):
14041404 inv .span = None
14051405
14061406 # Should not raise
1407- handler ._fallback_stop (inv , "stop_llm" )
1408- handler ._fallback_fail (
1407+ handler ._fallback_stop (inv , "stop_llm" ) # pylint: disable=no-member
1408+ handler ._fallback_fail ( # pylint: disable=no-member
14091409 inv , Error (message = "err" , type = RuntimeError ), "fail_llm"
14101410 )
14111411 handler ._async_stop_llm (
@@ -1448,12 +1448,12 @@ def test_fallback_methods_apply_attributes(self):
14481448 ) as m2 , patch (
14491449 "opentelemetry.util.genai._multimodal_processing._maybe_emit_llm_event"
14501450 ): # fmt: skip
1451- handler ._fallback_stop (inv , "stop_llm" )
1451+ handler ._fallback_stop (inv , "stop_llm" ) # pylint: disable=no-member
14521452 m1 .assert_called_with (mock_span , inv )
14531453 mock_span .end .assert_called_once ()
14541454
14551455 mock_span .reset_mock ()
1456- handler ._fallback_fail (inv , error , "fail_llm" )
1456+ handler ._fallback_fail (inv , error , "fail_llm" ) # pylint: disable=no-member
14571457 m2 .assert_called_with (mock_span , error )
14581458 mock_span .end .assert_called_once ()
14591459
@@ -1565,7 +1565,7 @@ def test_dispatch_task_routes_agent_methods(self):
15651565 "opentelemetry.util.genai._multimodal_processing._maybe_emit_invoke_agent_event"
15661566 ): # fmt: skip
15671567 # stop_agent
1568- handler ._dispatch_task (
1568+ handler ._dispatch_task ( # pylint: disable=no-member
15691569 _MultimodalAsyncTask (
15701570 invocation = inv , method = "stop_agent" , handler = handler
15711571 )
@@ -1577,7 +1577,7 @@ def test_dispatch_task_routes_agent_methods(self):
15771577 m_attr .reset_mock ()
15781578
15791579 # fail_agent
1580- handler ._dispatch_task (
1580+ handler ._dispatch_task ( # pylint: disable=no-member
15811581 _MultimodalAsyncTask (
15821582 invocation = inv ,
15831583 method = "fail_agent" ,
@@ -1605,7 +1605,7 @@ def test_async_stop_and_fail_agent_process_correctly(self):
16051605 ) as m2 , patch (
16061606 "opentelemetry.util.genai._multimodal_processing._maybe_emit_invoke_agent_event"
16071607 ): # fmt: skip
1608- handler ._async_stop_invoke_agent (
1608+ handler ._async_stop_invoke_agent ( # pylint: disable=no-member
16091609 _MultimodalAsyncTask (
16101610 invocation = inv , method = "stop_agent" , handler = handler
16111611 )
@@ -1616,7 +1616,7 @@ def test_async_stop_and_fail_agent_process_correctly(self):
16161616
16171617 mock_span .reset_mock ()
16181618 error = Error (message = "err" , type = ValueError )
1619- handler ._async_fail_invoke_agent (
1619+ handler ._async_fail_invoke_agent ( # pylint: disable=no-member
16201620 _MultimodalAsyncTask (
16211621 invocation = inv ,
16221622 method = "fail_agent" ,
@@ -1634,12 +1634,12 @@ def test_agent_async_methods_handle_span_none(self):
16341634 inv .span = None
16351635
16361636 # Should not raise
1637- handler ._async_stop_invoke_agent (
1637+ handler ._async_stop_invoke_agent ( # pylint: disable=no-member
16381638 _MultimodalAsyncTask (
16391639 invocation = inv , method = "stop_agent" , handler = handler
16401640 )
16411641 )
1642- handler ._async_fail_invoke_agent (
1642+ handler ._async_fail_invoke_agent ( # pylint: disable=no-member
16431643 _MultimodalAsyncTask (
16441644 invocation = inv ,
16451645 method = "fail_agent" ,
@@ -1662,7 +1662,7 @@ def test_fallback_stop_agent_applies_attributes(self):
16621662 ) as m1 , patch (
16631663 "opentelemetry.util.genai._multimodal_processing._maybe_emit_invoke_agent_event"
16641664 ): # fmt: skip
1665- handler ._fallback_stop (inv , "stop_agent" )
1665+ handler ._fallback_stop (inv , "stop_agent" ) # pylint: disable=no-member
16661666 m1 .assert_called_with (mock_span , inv )
16671667 mock_span .end .assert_called_once ()
16681668
@@ -1683,7 +1683,7 @@ def test_fallback_fail_agent_applies_attributes(self):
16831683 ) as m2 , patch (
16841684 "opentelemetry.util.genai._multimodal_processing._maybe_emit_invoke_agent_event"
16851685 ): # fmt: skip
1686- handler ._fallback_fail (inv , error , "fail_agent" )
1686+ handler ._fallback_fail (inv , error , "fail_agent" ) # pylint: disable=no-member
16871687 m1 .assert_called_with (mock_span , inv )
16881688 m2 .assert_called_with (mock_span , error )
16891689 mock_span .end .assert_called_once ()
@@ -1951,7 +1951,7 @@ def test_shutdown_sequence(
19511951 ("uploader" , timeout )
19521952 )
19531953
1954- ExtendedTelemetryHandler .shutdown (
1954+ ExtendedTelemetryHandler .shutdown ( # pylint: disable=no-member
19551955 worker_timeout = 1.0 ,
19561956 pre_uploader_timeout = 2.0 ,
19571957 uploader_timeout = 3.0 ,
@@ -1971,8 +1971,8 @@ def test_shutdown_idempotent( # pylint: disable=no-self-use
19711971 mock_shutdown_pre_uploader : MagicMock ,
19721972 mock_shutdown_uploader : MagicMock ,
19731973 ):
1974- ExtendedTelemetryHandler .shutdown ()
1975- ExtendedTelemetryHandler .shutdown ()
1974+ ExtendedTelemetryHandler .shutdown () # pylint: disable=no-member
1975+ ExtendedTelemetryHandler .shutdown () # pylint: disable=no-member
19761976
19771977 mock_shutdown_worker .assert_called_once ()
19781978 mock_shutdown_pre_uploader .assert_called_once ()
0 commit comments