From 01e0adadc966c357b291bfc4f5f73e724f5ea5a6 Mon Sep 17 00:00:00 2001 From: Hwangjae Lee Date: Tue, 27 Jan 2026 13:45:22 +0900 Subject: [PATCH] fix(samples): correct return type annotation for _validate_shopping_agent The _validate_shopping_agent method returns bool but was annotated as returning None. This fixes the type hint to match the actual behavior. - Method returns True when validation succeeds - Method returns False when validation fails - Caller uses the return value in a conditional check Signed-off-by: Hwangjae Lee --- samples/python/src/roles/merchant_agent/agent_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/python/src/roles/merchant_agent/agent_executor.py b/samples/python/src/roles/merchant_agent/agent_executor.py index 55cc43e9..d1a4d42a 100644 --- a/samples/python/src/roles/merchant_agent/agent_executor.py +++ b/samples/python/src/roles/merchant_agent/agent_executor.py @@ -97,7 +97,7 @@ async def _handle_request( async def _validate_shopping_agent( self, data_parts: list[dict[str, Any]], updater: TaskUpdater - ) -> None: + ) -> bool: """Validates that the incoming request is from a trusted Shopping Agent. Args: