Skip to content

Commit 9673095

Browse files
committed
fix(typing): explicitly cast platform uuid to str using typing.cast to satisfy strict mypy inference rules
1 parent 06eeca8 commit 9673095

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/google/adk/agents/invocation_context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from __future__ import annotations
1616

1717
from typing import Any
18+
from typing import cast
1819
from typing import Optional
1920

2021
from google.adk.platform import uuid as platform_uuid
@@ -413,4 +414,4 @@ def _find_matching_function_call(
413414

414415

415416
def new_invocation_context_id() -> str:
416-
return "e-" + str(platform_uuid.new_uuid())
417+
return "e-" + str(cast(str, platform_uuid.new_uuid()))

0 commit comments

Comments
 (0)