Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix: type checks

angrybaybladee9d91171c6e6
diff --git a/python/composio/core/models/toolkits.py b/python/composio/core/models/toolkits.py
index 1b829c970..773423f18 100644
--- a/python/composio/core/models/toolkits.py
+++ b/python/composio/core/models/toolkits.py
@@ -57,7 +57,7 @@ class Toolkits(Resource):
)
@t.overload
- def get(self) -> list[toolkit_list_response.Item]:
+ def get(self) -> t.List[toolkit_list_response.Item]:
"""Get all toolkits."""
@t.overload
@@ -69,7 +69,7 @@ class Toolkits(Resource):
self,
*,
query: toolkit_list_params.ToolkitListParams,
- ) -> list[toolkit_list_response.Item]:
+ ) -> t.List[toolkit_list_response.Item]:
"""Get a list of toolkits by query."""
def get(
@@ -79,7 +79,7 @@ class Toolkits(Resource):
query: t.Optional[toolkit_list_params.ToolkitListParams] = None,
) -> t.Union[
toolkit_retrieve_response.ToolkitRetrieveResponse,
- list[toolkit_list_response.Item],
+ t.List[toolkit_list_response.Item],
]:
if slug is not None:
return self._client.toolkits.retrieve(slug=slug)
diff --git a/python/noxfile.py b/python/noxfile.py
index 2d9851558..7caf66f21 100644
--- a/python/noxfile.py
+++ b/python/noxfile.py
@@ -21,6 +21,7 @@ type_stubs = [
"fastapi",
"langchain",
"langgraph",
+ "llama-index",
"openai-agents",
"langchain-openai",
"google-cloud-aiplatform",