8000 fix toolset codes to make it work with python 3.9 · Syntax404-coder/adk-python@2d84b13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d84b13

Browse files
seanzhougooglecopybara-github
authored andcommitted
fix toolset codes to make it work with python 3.9
PiperOrigin-RevId: 757991503
1 parent 80813a7 commit 2d84b13

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/google/adk/tools/apihub_tool/apihub_toolset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
from typing import List
1717
from typing import Optional
18-
from typing import override
1918
from typing import Union
2019

20+
from typing_extensions import override
2121
import yaml
2222

2323
from ...agents.readonly_context import ReadonlyContext

src/google/adk/tools/application_integration_tool/application_integration_toolset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
from typing import List
1616
from typing import Optional
17-
from typing import override
1817
from typing import Union
1918

2019
from fastapi.openapi.models import HTTPBearer
20+
from typing_extensions import override
2121

2222
from ...auth.auth_credential import AuthCredential
2323
from ...auth.auth_credential import AuthCredentialTypes

src/google/adk/tools/google_api_tool/google_api_tool_set.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
from typing import Any
2020
from typing import List
2121
from typing import Optional
22-
from typing import override
2322
from typing import Type
2423
from typing import Union
2524

25+
from typing_extensions import override
26+
2627
from ...agents.readonly_context import ReadonlyContext
2728
from ...auth import OpenIdConnectWithConfig
2829
from ...tools.base_toolset import BaseToolset

src/google/adk/tools/openapi_tool/openapi_spec_parser/openapi_toolset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
from typing import List
2121
from typing import Literal
2222
from typing import Optional
23-
from typing import override
2423
from typing import Union
2524

25+
from typing_extensions import override
2626
import yaml
2727

2828
from ....agents.readonly_context import ReadonlyContext
@@ -101,7 +101,7 @@ def __init__(
101101
AuthCredential or use helpers in
102102
`google.adk.tools.openapi_tool.auth.auth_helpers`
103103
tool_filter: The filter used to filter the tools in the toolset. It can be
104-
either a tool predicate or a list of tool names of the tools to expose
104+
either a tool predicate or a list of tool names of the tools to expose.
105105
"""
106106
if not spec_dict:
107107
spec_dict = self._load_spec(spec_str, spec_str_type)

0 commit comments

Comments
 (0)
0