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 21, 21:00 UTC
fix(schema-converter): silence mypy on null-only-anyOf fallback return
The `return t.Optional[t.Any] if has_null else str` line introduced in 630038ab8 returns a union of `<typing special form>` and `type[str]`, which mypy can't reconcile with the function's declared `t.Type` return. Same `# type: ignore` pattern already used three other times in this function (lines 280, 285, 287) for the identical reason — `t.Optional` isn't a `type[T]`, it's a typing special form. Unblocks Checks/common-checks on this PR and any other PR cut after 630038ab8 landed on next. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>