Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 02:00 UTC
fix(python): cast apply_modifier_by_type return for mypy assignment compat
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dhawal Upadhyay committed
Mar 20, 2026 at 14:10 UTC
6f3e7e75d916c90fdccc7650c565bbfefa2461f8
1 file changed
+9
-6
python/composio/core/models/tool_router_session.py
+9
-6
@@ -193,12 +193,15 @@ class ToolRouterSession(t.Generic[TTool, TToolCollection]):
193
from composio.core.models.tools import ToolExecutionResponse
194
195
type_after: t.Literal["after_execute"] = "after_execute"
196
- result = apply_modifier_by_type(
197
- modifiers=modifiers,
198
- toolkit="composio",
199
- tool=slug,
200
- type=type_after,
201
- response=t.cast(ToolExecutionResponse, result),
196
+ result = t.cast(
197
+ t.Dict[str, t.Any],
198
+ apply_modifier_by_type(
199
+ modifiers=modifiers,
200
+ toolkit="composio",
201
+ tool=slug,
202
+ type=type_after,
203
+ response=t.cast(ToolExecutionResponse, result),
204
+ ),
205
)
206
207
return result