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(py): fix common checks
jkomyno committed
Jan 24, 2026 at 22:26 UTC
3fcb089fde2e1c0c46dad4d19297ac56736ba3eb
1 file changed
+3
-3
python/composio/utils/schema_converter.py
+3
-3
@@ -12,7 +12,7 @@ We handle those by pre-filtering them before passing to the library.
12
import typing as t
13
from functools import reduce
14
15
-from json_schema_to_pydantic import (
15
+from json_schema_to_pydantic import ( # type: ignore[import-untyped]
16
create_model as create_model_from_schema,
17
SchemaError,
18
CombinerError,
@@ -170,10 +170,10 @@ def _is_simple_primitive(schema: t.Dict[str, t.Any]) -> bool:
170
)
171
172
173
-def _convert_simple_type(schema: t.Dict[str, t.Any]) -> t.Type:
173
+def _convert_simple_type(schema: t.Dict[str, t.Any]) -> t.Type[t.Any]:
174
"""Convert simple primitive types directly."""
175
type_ = schema.get("type", "string")
176
- return PYDANTIC_TYPE_TO_PYTHON_TYPE.get(type_, str)
176
+ return t.cast(t.Type[t.Any], PYDANTIC_TYPE_TO_PYTHON_TYPE.get(type_, str))
177
178
179
def _convert_with_library(