You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(contrib): fix pyright/basedpyright errors in google_adk_agents MCP tests
The fake toolset factories in test_mcp.py and test_stateful_mcp.py were
annotated as returning _FakeToolset, which pyright/basedpyright correctly
flagged as incompatible with TemporalMcpToolSetProvider's/
TemporalStatefulMcpToolSetProvider's toolset_factory parameter type of
Callable[[Any | None], McpToolset], since _FakeToolset is a structurally
similar stand-in but not a subclass of McpToolset.
Annotate the factories as returning McpToolset and cast the fake instance
through object first (as basedpyright's reportInvalidCast requires for
unrelated concrete types), matching CI's build-lint-test/test-latest-deps
failure on PR #1664.
0 commit comments